You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I looked at this, and the reason is that .update_pars in loo_moment_match.R tries to access x$fit@sim$fnames_oi_old which is not available in brms object created by combine_models()
Those slots are missing in the combined object. See the discourse post for the failing example. moment_match works if you run the following lines to copy the missing info from one one model to the combined model
The problem and reproducible example provided in Stan discourse https://discourse.mc-stan.org/t/loo-moment-match-crashes-on-brms-fits-after-combine-models/34273
I looked at this, and the reason is that
.update_pars
inloo_moment_match.R
tries to accessx$fit@sim$fnames_oi_old
which is not available in brms object created bycombine_models()
The relevant part in
loo_moment_match.R
https://github.com/paul-buerkner/brms/blob/b92ed99e627b7ba0894803143aa6552a0d7a1131/R/loo_moment_match.R#L128C3-L128C74
EDIT: all the missing slots in
@sim
in brms object created bycombine_models()
The text was updated successfully, but these errors were encountered: