mi.fixed {mi}R Documentation

Elementary function: imputation of constant variable.

Description

Imputes univariate constant missing data.

Usage

 mi.fixed( formula, data = NULL, ... )
 ## S3 method for class 'mi.copy':
 plot( x, y, main=deparse( substitute( y ) ), gray.scale = FALSE, ...)

Arguments

formula an object of class '"formula"' (or one that can be coerced to that class): a symbolic description of the model to be fitted. See bayesglm 'formula' for details.
data A data frame containing the incomplete data and the matrix of the complete predictors.
... Currently not used.
x An object of class '"mi.copy"'.
y Observed values.
main main title of the plot.
gray.scale When set to TRUE, makes the plot into gray scale with predefined color and line type.

Value

model A summary of the fitted model.
expected The expected values estimated by the model.
random Vector of length n.mis of random predicted values predicted by using the normal distribution.

Author(s)

Masanao Yajima yajima@stat.columbia.edu, M.Grazia Pittau grazia@stat.columbia.edu, Andrew Gelman gelman@stat.columbia.edu

References

Andrew Gelman and Jennifer Hill, Data Analysis Using Regression and Multilevel/Hierarchical Models, Cambridge University Press, 2006.

See Also

mi.info, mi.method, mi


[Package mi version 0.02-02 Index]