stan-dev / rstanarm

rstanarm R package for Bayesian applied regression modeling
https://mc-stan.org/rstanarm
GNU General Public License v3.0
385 stars 132 forks source link

Implement posterior::as_draws() for rstanarm objects #596

Closed jgabry closed 1 year ago

jgabry commented 1 year ago

closes #540

Adds the various as_draws_*.stanreg methods for compatibility with the posterior package

jgabry commented 1 year ago

@bgoodri Ok to merge? Everything is passing except on ubuntu-latest (release), but the error is error unrelated to this PR:

 ── Failure ('test_stan_glm.R:264:7'): stan_glm returns expected result for bernoulli ──
  `val` not equal to `ans`.
  1/3 mismatches
  [3] 0.879 - 0.756 == 0.123
  cauchit