m-clark / mixedup

An R package for extracting results from mixed models that are easy to use and viable for presentation.
http://m-clark.github.io/mixedup
MIT License
64 stars 2 forks source link

`posterior_samples` deprecation #31

Closed m-clark closed 2 years ago

m-clark commented 2 years ago

brms now uses the posterior package approach for posterior draws, which seems to bears little resemblance to the posterior_draws function by default. The documentation for as_draws and related doesn't really describe what the functions return or what to do with them, but at first blush the as_draw_matrix should work similarly to how posterior_samples was used for extract_random_effects. Ideally though, we could use the new approach to save some other processing, e.g. going directly to df/tibble via summarize_draws, but it'd be nice to avoid another dependency.

Note that this only applies to extract_random_effects/coefs.

m-clark commented 2 years ago

Fixed in #36