setHistogramRange: Set histogram range if bins are entered

Description Usage Arguments Details Value

View source: R/utilities-histogram.R

Description

If the user enters a logical variable, they should not need to enter a histogram range, but calculating the sensitivity requires a range. This method sets the range for a logical variable as c(0,1).

Usage

1
setHistogramRange(rng, varType, bins)

Arguments

rng

The rng entered by the user, may be NULL

bins

The histogram bins entered by the user, may be NULL

delta

The variable type of the data

Details

If the user enters numeric bins, they should not need to enter a histogram range, but calculating the sensitivity requires a range. This method sets the range for a numeric variable with bins entered to the bins lower bound and the bin upper bound.

If neither of the cases are true for the histogram, the range the user entered if returned.

Value

The 2-tuple that will be used as the range for the histogram when calculating sensitivity, censoring data, and imputing values.


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