stan-dev / rstanarm

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

stanreg_list should also accept a list as input #538

Open jgabry opened 3 years ago

jgabry commented 3 years ago

Right now stanreg_list can be used with multiple stanreg objects passed in separately

stanreg_list(fit1, fit2)

but it can't handle them passed in together in a list

x <- list(fit1, fit2)
stanreg_list(x)

The latter is much more convenient in some cases so we should support it. Should be an easy change. Assigning myself.