View source: R/find_parameter_zi.R
find_parameters.zeroinfl | R Documentation |
Returns the names of model parameters, like they typically
appear in the summary()
output.
## S3 method for class 'zeroinfl'
find_parameters(
x,
component = c("all", "conditional", "zi", "zero_inflated"),
flatten = FALSE,
...
)
## S3 method for class 'mhurdle'
find_parameters(
x,
component = c("all", "conditional", "zi", "zero_inflated", "infrequent_purchase", "ip",
"auxiliary"),
flatten = FALSE,
...
)
x |
A fitted model. |
component |
Should all predictor variables, predictor variables 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. Note that the conditional component is also called count or mean component, depending on the model. |
flatten |
Logical, if |
... |
Currently not used. |
A list of parameter names. The returned list may have following elements:
conditional
, the "fixed effects" part from the model.
zero_inflated
, the "fixed effects" part from the zero-inflation
component of the model.
data(mtcars)
m <- lm(mpg ~ wt + cyl + vs, data = mtcars)
find_parameters(m)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.