make_bins: Histogram Binning Procedures for Pooled Hazards Regression

Description Usage Arguments

View source: R/utils.R

Description

Histogram Binning Procedures for Pooled Hazards Regression

Usage

1
make_bins(grid_var, grid_type = c("hist", "scaled"), max_bins = 30L)

Arguments

grid_var

The numeric vector over which histogram-based binning is to be performed.

grid_type

A character indicating 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 numeric indicating the maximum number of bins that are allowed in the grid for building the histogram based discretization.


haldensify documentation built on Feb. 10, 2022, 1:07 a.m.