Get model parametersSource:
Returns the coefficients (or posterior samples for Bayesian models) from a model. See the documentation for your object's class:
Bayesian models (rstanarm, brms, MCMCglmm, ...)
Estimated marginal means (emmeans)
Generalized additive models (mgcv, VGAM, ...)
Marginal effects models (mfx)
Mixed models (lme4, glmmTMB, GLMMadaptive, ...)
Zero-inflated and hurdle models (pscl, ...)
Models with special components (betareg, MuMIn, ...)
Hypothesis tests (
for non-Bayesian models, a data frame with two columns: the parameter names and the related point estimates.
for Anova (
aov()) with error term, a list of parameters for the conditional and the random effects parameters
In most cases when models either return different "effects" (fixed,
random) or "components" (conditional, zero-inflated, ...), the arguments
component can be used.
get_parameters() is comparable to
coef(), however, the coefficients
are returned as data frame (with columns for names and point estimates of
coefficients). For Bayesian models, the posterior samples of parameters are
Possible values for the
component argument depend on the model class.
Following are valid options:
"all": returns all model components, applies to all models, but will only have an effect for models with more than just the conditional model component.
"conditional": only returns the conditional component, i.e. "fixed effects" terms from the model. Will only have an effect for models with more than just the conditional model component.
"smooth_terms": returns smooth terms, only applies to GAMs (or similar models that may contain smooth terms).
"zi"): returns the zero-inflation component.
"dispersion": returns the dispersion model component. This is common for models with zero-inflation or that can model the dispersion parameter.
"instruments": for instrumental-variable or some fixed effects regression, returns the instruments.
"location": returns location parameters such as
instruments(everything that are fixed or random effects - depending on the
effectsargument - but no auxiliary parameters).
"auxiliary"): components like
precision(and other auxiliary parameters) are returned.