checkImputationRange: Error check imputation range for numeric or integer variables

Description Usage Arguments Details Value

View source: R/utilities-data-validation.R View source: R/utilities-input-validation.R

Description

Check that the entered imputation range is within the entered data range. If yes, return the entered imputation range, which will be used as the imputation range for the call to the utility function 'fillMissing()'. If not, return the data range. If the imputation range is NULL, default to the data range.

Check that the entered imputation range is within the entered data range. If yes, return the entered imputation range, which will be used as the imputation range for the call to the utility function 'fillMissing()'. If not, return the data range. If the imputation range is NULL, default to the data range.

Usage

1
2
3
checkImputationRange(imputationRange, rng, varType)

checkImputationRange(imputationRange, rng, varType)

Arguments

imputationRange

The imputation range entered by the user

rng

The data range entered by the user

varType

The variable type for the histogram data

imputationRange

The imputation range entered by the user

rng

The data range entered by the user

varType

The variable type for the histogram data

imputationRange

The imputation range entered by the user

rng

The data range entered by the user

varType

The variable type for the histogram data

Details

We check if the imputation range is within the data range because it is a privacy concern. If the imputation range is outside of the data range, NA values will be replaced with values outside of the data range, which will show that there are NA values in the data or skew the result when the differentially private estimate is released.

We check if the imputation range is within the data range because it is a privacy concern. If the imputation range is outside of the data range, NA values will be replaced with values outside of the data range, which will show that there are NA values in the data or skew the result when the differentially private estimate is released.

Value

the imputation range that will be used for 'fillMissing()'.

the imputation range that will be used for 'fillMissing()'. Error check imputation range for numeric or integer variables

Check that the entered imputation range is within the entered data range. If yes, return the entered imputation range, which will be used as the imputation range for the call to the utility function 'fillMissing()'. If not, return the data range. If the imputation range is NULL, default to the data range.

We check if the imputation range is within the data range because it is a privacy concern. If the imputation range is outside of the data range, NA values will be replaced with values outside of the data range, which will show that there are NA values in the data or skew the result when the differentially private estimate is released.

the imputation range that will be used for 'fillMissing()'.


IQSS/PSI-Library documentation built on Feb. 15, 2020, 9:03 p.m.