Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

stanreg_list

Create lists of fitted model objects, combine them, or append new models to existing lists of models.


Description

Create lists of fitted model objects, combine them, or append new models to existing lists of models.

Usage

stanreg_list(..., model_names = NULL)

stanmvreg_list(..., model_names = NULL)

stanjm_list(..., model_names = NULL)

## S3 method for class 'stanreg_list'
print(x, ...)

Arguments

...

Objects to combine into a "stanreg_list", "stanmvreg_list", or "stanjm_list". Can be fitted model objects, existing "stan*_list" objects to combine, or one existing "stan*_list" object followed by fitted model objects to append to the list.

model_names

Optionally, a character vector of model names. If not specified then the names are inferred from the name of the objects passed in via .... These model names are used, for example, when printing the results of the loo_compare.stanreg_list and loo_model_weights.stanreg_list methods.

x

The object to print.

Value

A list of class "stanreg_list", "stanmvreg_list", or "stanjm_list", containing the fitted model objects and some metadata stored as attributes.

See Also

loo_model_weights for usage of stanreg_list.


rstanarm

Bayesian Applied Regression Modeling via Stan

v2.21.1
GPL (>= 3)
Authors
Jonah Gabry [aut], Imad Ali [ctb], Sam Brilleman [ctb], Jacqueline Buros Novik [ctb] (R/stan_jm.R), AstraZeneca [ctb] (R/stan_jm.R), Trustees of Columbia University [cph], Simon Wood [cph] (R/stan_gamm4.R), R Core Deveopment Team [cph] (R/stan_aov.R), Douglas Bates [cph] (R/pp_data.R), Martin Maechler [cph] (R/pp_data.R), Ben Bolker [cph] (R/pp_data.R), Steve Walker [cph] (R/pp_data.R), Brian Ripley [cph] (R/stan_aov.R, R/stan_polr.R), William Venables [cph] (R/stan_polr.R), Paul-Christian Burkner [cph] (R/misc.R), Ben Goodrich [cre, aut]
Initial release
2020-07-20

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.