checkImputationBins: Error check imputation bins for logical, factor, or character...

Description Usage Arguments Value

View source: R/utilities-histogram.R

Description

Check that the entered imputation bins are a subset of the histogram bins. If yes, return the entered imputation bins, which will be used as the imputation bins for the call to the utility function 'fillMissing()'. If not, return the histogram bins. If the imputation bins are NULL, default to the histogram bins. The histogram bins may be NULL, in which case the stability mechanism will be used to determine the histogram bins and imputation bins.

Usage

1
checkImputationBins(imputationBins, bins, varType)

Arguments

imputationBins

The imputation bins entered by the user

varType

The variable type for the histogram data

rng

The histogram bins entered by the user

Value

a list of the imputation bins that will be used for 'fillMissing()'.


privacytoolsproject/PSI-Library documentation built on Feb. 17, 2020, 2:03 p.m.