Description Usage Arguments Value
View source: R/MissingTreatment.R
The mice package implements a method to deal with missing data. The package creates multiple imputations (replacement values) for multivariate missing data. The method is based on Fully Conditional Specification, where each incomplete variable is imputed by a separate model. The MICE algorithm can impute mixes of continuous, binary, unordered categorical and ordered categorical data. In addition, MICE can impute continuous two-level data, and maintain consistency between imputations by means of passive imputation. Many diagnostic plots are implemented to inspect the quality of the imputations. Generates Multivariate Imputations by Chained Equations (MICE)
1 | mice_treatment(data, dv, method)
|
data |
Any data frame tat needs to be treated for Missing data |
dv |
The dependant variable that is to be ignored from the given data while treating missing values |
method |
Can be either a single string, or a vector of strings with length length(blocks), specifying the imputation method to be used for each column in data. If specified as a single string, the same method will be used for all blocks. |
Returns a dataframe treated for missing values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.