Returns the names of model parameters, like they typically
appear in the summary()
output. For Bayesian models, the parameter
names equal the column names of the posterior samples after coercion
from as.data.frame()
.
find_parameters(x, ...)# S3 method for gam
find_parameters(x, component = c("all", "conditional",
"smooth_terms"), flatten = FALSE, ...)
# S3 method for merMod
find_parameters(x, effects = c("all", "fixed",
"random"), flatten = FALSE, ...)
# S3 method for zeroinfl
find_parameters(x, component = c("all", "conditional",
"zi", "zero_inflated"), flatten = FALSE, ...)
# S3 method for hurdle
find_parameters(x, component = c("all", "conditional",
"zi", "zero_inflated"), flatten = FALSE, ...)
# S3 method for brmsfit
find_parameters(x, effects = c("all", "fixed",
"random"), component = c("all", "conditional", "zi", "zero_inflated",
"dispersion", "simplex", "sigma", "smooth_terms"), flatten = FALSE,
parameters = NULL, ...)
# S3 method for bayesx
find_parameters(x, component = c("all", "conditional",
"smooth_terms"), flatten = FALSE, parameters = NULL, ...)
# S3 method for stanreg
find_parameters(x, effects = c("all", "fixed",
"random"), component = c("all", "conditional", "smooth_terms"),
flatten = FALSE, parameters = NULL, ...)
# S3 method for sim.merMod
find_parameters(x, effects = c("all", "fixed",
"random"), flatten = FALSE, parameters = NULL, ...)
# S3 method for bayesx
get_parameters(x, component = c("all", "conditional",
"smooth_terms"), flatten = FALSE, parameters = NULL, ...)
A fitted model.
Currently not used.
Should all parameters, parameters for the conditional model, the zero-inflated part of the model, the dispersion term or the instrumental variables be returned? Applies to models with zero-inflated and/or dispersion formula, or to models with instrumental variable (so called fixed-effects regressions). May be abbreviated.
Logical, if TRUE
, the values are returned
as character vector, not as list. Duplicated values are removed.
Should parameters for fixed effects, random effects or both be returned? Only applies to mixed models. May be abbreviated.
Regular expression pattern that describes the parameters that should be returned.
A list of parameter names. For simple models, only one list-element,
conditional
, is returned. For more complex models, the returned
list may have following elements:
conditional
, the "fixed effects" part from the model
random
, the "random effects" part from the model
zero_inflated
, the "fixed effects" part from the zero-inflation component of the model
zero_inflated_random
, the "random effects" part from the zero-inflation component of the model
dispersion
, the dispersion parameters
simplex
, simplex parameters of monotonic effects (brms only)
smooth_terms
, the smooth parameters
In most cases when models either return different "effects" (fixed,
random) or "components" (conditional, zero-inflated, ...), the arguments
effects
and component
can be used. Not all model classes that
support these arguments are listed here in the 'Usage' section.
# NOT RUN {
data(mtcars)
m <- lm(mpg ~ wt + cyl + vs, data = mtcars)
find_parameters(m)
# }
Run the code above in your browser using DataLab