jsocolar / flocker

flexible occupancy estimation in R
Other
30 stars 3 forks source link

Enable loo with moment matching #33

Open jsocolar opened 3 years ago

jsocolar commented 1 year ago

Ok @SimonCMills, I think we might have a path forward here. As of cmdstanr 0.6.0 moment-matching is available in the $loo() method (i.e., fit$loo(moment_match = TRUE)). That means that if we can form the desired log-likelihood matrix in generated quantities during model fitting, we can loo with moment matching.