Random aggregation function for a factor variable
The function sampleCat samples with probabilites corresponding to the occurrence of the level in the NNs.
sampleCat(x, weights = NULL)
x
: factor vectorweights
: numeric vector providing weights for the observations in xOther imputation methods: hotdeck()
, impPCA()
, irmi()
, kNN()
, matchImpute()
, medianSamp()
, rangerImpute()
, regressionImp()