find_parameters.gamlss {insight} | R Documentation |
Find names of model parameters from generalized additive models
Description
Returns the names of model parameters, like they typically
appear in the summary()
output.
Usage
## S3 method for class 'gamlss'
find_parameters(x, flatten = FALSE, ...)
## S3 method for class 'gam'
find_parameters(x, component = "all", flatten = FALSE, ...)
Arguments
x |
A fitted model. |
flatten |
Logical, if |
... |
Currently not used. |
component |
Which type of parameters to return, such as parameters for the conditional model, the zero-inflated part of the model, the dispersion term, the instrumental variables or marginal effects be returned? Applies to models with zero-inflated and/or dispersion formula, or to models with instrumental variables (so called fixed-effects regressions), or models with marginal effects (from mfx). See details in section Model Components .May be abbreviated. Note that the conditional component also refers to the count or mean component - names may differ, depending on the modeling package. There are three convenient shortcuts (not applicable to all model classes):
|
Value
A list of parameter names. The returned list may have following elements:
-
conditional
, the "fixed effects" part from the model. -
smooth_terms
, the smooth parameters.
Examples
data(mtcars)
m <- mgcv::gam(mpg ~ s(hp) + gear, data = mtcars)
find_parameters(m)