Learn R Programming

mi (version 1.1)

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

Arguments

object

Usually an estimated model, such as that produced by glm

Additional arguments, currently not used

Value

A numeric vector of estimated parameters

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
# NOT RUN {
showMethods("get_parameters")
# }

Run the code above in your browser using DataLab