Description Usage Arguments Value Author(s) References
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.
1 2 3 | ds.norm.draw(y, ry, x, rank.adjust = TRUE, ...)
.ds.norm.draw(y, ry, x, rank.adjust = TRUE, ...)
|
y |
Incomplete data vector of length |
ry |
Vector of missing data pattern ( |
x |
Matrix ( |
rank.adjust |
Argument that specifies whether |
... |
Other named arguments. |
A list
containing components coef
(least squares estimate),
beta
(drawn regression weights) and sigma
(drawn value of the
residual standard deviation).
Gerko Vink, 2018, for this version, based on earlier versions written by Stef van Buuren, Karin Groothuis-Oudshoorn, 2017
Rubin, D.B. (1987). Multiple imputation for nonresponse in surveys. New York: Wiley.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.