sampleCat: Random aggregation function for a factor variable

View source: R/sampleCat.R

sampleCatR Documentation

Random aggregation function for a factor variable

Description

The function sampleCat samples with probabilites corresponding to the occurrence of the level in the NNs.

Usage

sampleCat(x, weights = NULL)

Arguments

x

factor vector

weights

numeric vector providing weights for the observations in x

See Also

Other imputation methods: hotdeck(), impPCA(), irmi(), kNN(), matchImpute(), medianSamp(), rangerImpute(), regressionImp(), xgboostImpute()


alexkowa/VIM documentation built on Aug. 11, 2024, 6:31 a.m.