get_parameters: An Extractor Function for Model Parameters

get_parametersR Documentation

An Extractor Function for Model Parameters

Description

This function is not intended to be called directly by users. During the multiple imputation process, the mi function estimates models and stores the estimated parameters in the parameters slot of an object that inherits from the missing_variable-class. The get_parameter function simply extracts these parameters for storeage, which are usually the estimated coefficients but may also include ancillary parameters.

Usage

get_parameters(object, ...)

Arguments

object

Usually an estimated model, such as that produced by glm

...

Additional arguments, currently not used

Details

There is method for the object produced by polr, which also returns the estimated cutpoints in a proportional odds model. However, the default method simply calls coef and returns the result. If users implement their own models, it may be necessary to write a short get_parameters method.

Value

A numeric vector of estimated parameters

Author(s)

Ben Goodrich and Jonathan Kropko, for this version, based on earlier versions written by Yu-Sung Su, Masanao Yajima, Maria Grazia Pittau, Jennifer Hill, and Andrew Gelman.

See Also

fit_model

Examples

showMethods("get_parameters")

mi documentation built on June 7, 2022, 1:04 a.m.