Description Usage Arguments Value References See Also Examples
Imputes missing data using the mix package.
1 | imputeData(data, categorical = NULL, seed = NULL, verbose = interactive())
|
data |
A numeric vector, matrix, or data frame of observations containing missing values. Categorical variables are allowed. If a matrix or data frame, rows correspond to observations and columns correspond to variables. |
categorical |
A logical vectors whose ith entry is |
seed |
A seed for the function |
verbose |
A logical, if |
A dataset of the same dimensions as data
with missing values
filled in.
Schafer J. L. (1997). Analysis of Imcomplete Multivariate Data, Chapman and Hall.
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
# Note that package 'mix' must be installed
data(stlouis, package = "mix")
# impute the continuos variables in the stlouis data
stlimp <- imputeData(stlouis[,-(1:3)])
# plot imputed values
imputePairs(stlouis[,-(1:3)], stlimp)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.