mi.fixed: Elementary function: imputation of constant variable.
Description
Imputes univariate constant missing data.
Usage
mi.fixed( formula, data = NULL, ... )
mi.copy(Y, X, ...)
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.
Y
A variable that is correlated with X
X
A variable that is correlated with Y
...
Currently not used
Value
modelA summary of the fitted model.
expectedThe expected values estimated by the model.
randomVector of length n.mis of random predicted values predicted by using the normal distribution.
References
Andrew Gelman and Jennifer Hill,
Data Analysis Using Regression and Multilevel/Hierarchical Models,
Cambridge University Press, 2006.