Learn R Programming

mi (version 1.2)

get_parameters: 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, ...)

Value

A numeric vector of estimated parameters

Arguments

object

Usually an estimated model, such as that produced by glm

...

Additional arguments, currently not used

Author

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.

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.

See Also

fit_model

Examples

Run this code
showMethods("get_parameters")

Run the code above in your browser using DataLab