medianSamp function

Aggregation function for a ordinal variable

Aggregation function for a ordinal variable

The function medianSamp chooses the level as the median or randomly between two levels.

medianSamp(x, weights = NULL)

Arguments

  • x: ordered factor vector
  • weights: numeric vector providing weights for the observations in x

See Also

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