norm.draw {mice} | R Documentation |
This function draws random values of beta and sigma under the Bayesian linear regression model as described in Rubin (1987, p. 167). This function can be called by user-specified imputation functions.
norm.draw(y, ry, x, ridge = 1e-05, ...) .norm.draw(y, ry, x, ridge = 1e-05, ...)
y |
Incomplete data vector of length |
ry |
Vector of missing data pattern ( |
x |
Matrix ( |
ridge |
A small numerical value specifying the size of the ridge used.
The default value |
... |
Other named arguments. |
A list
containing components coef
(least squares estimate),
beta
(drawn regression weights) and sigma
(drawn value of the
residual standard deviation).
Stef van Buuren, Karin Groothuis-Oudshoorn, 2000
Rubin, D.B. (1987). Multiple imputation for nonresponse in surveys. New York: Wiley.