This is a constructor to create your own imputation methods.
Usage
makeImputeMethod(learn, impute, args = list())
Arguments
- learn
(
function(data, target, col, ...)
)
Function to learn and extract information on columncol
out of data framedata
. Argumenttarget
specifies the target column of the learning task. The function has to return a named list of values.- impute
(
function(data, target, col, ...)
)
Function to impute missing values incol
using information returned bylearn
on the same column. All list elements of the return values olearn
are passed to this function into...
.- args
(list)
Named list of arguments to pass tolearn
via...
.
See also
Other impute:
imputations
,
impute()
,
makeImputeWrapper()
,
reimpute()