added option to use loo estimate for per-replicate errors -- default is to use loo