sambrilleman / rstanarm

rstanarm R package for Bayesian applied regression modeling
http://mc-stan.org/interfaces/rstanarm.html
GNU General Public License v3.0
0 stars 1 forks source link

Addition of posterior_traj function to rstanarm #24

Closed sambrilleman closed 7 years ago

sambrilleman commented 7 years ago

Added posterior_traj function.

Also made changes to posterior_predict so that it can handle predictions for one submodel of a stanjm object, without compromising the handling of other stanreg objects.

Also changed the majority of stanjm-methods, so that they have an additional argument 'm'. If NULL, then the method generally returns the result for all submodels, whereas if m = some value then the method will return the result for one submodel. The m argument can of course be included when calling stanreg-methods too, where it will just be ignored.