Learn R Programming

imputeR (version 2.2)

rpartC: classification tree for imputation

Description

classification tree for imputation

Usage

rpartC(x, y)

Arguments

x

predictor matrix

y

response vector

Value

a model object that can be used by the impute function

See Also

rpart

Examples

Run this code
# NOT RUN {
data(spect)
missdata <- SimIm(spect, 0.1)
# }
# NOT RUN {
impdata <- impute(spect, cFun = "rpartC")
# }

Run the code above in your browser using DataLab