Histogram Binning Procedures for Pooled Hazards Regression
Usage
make_bins(grid_var, grid_type = c("hist", "scaled"), max_bins = 30L)Arguments
- grid_var
The
numericvector over which histogram-based binning is to be performed.- grid_type
A
characterindicating the choice of binning rule, with"hist"corresponding to the use of several rules proposed for optimal histogram construction and"scaled"corresponding to the use of various pre-set multiples of the square root of the sample size.- max_bins
A
numericindicating the maximum number of bins that are allowed in the grid for building the histogram based discretization.