This function creates several types of bins for discrete data
make_bins_disc(
x,
pnull,
phat = function(x) -99,
nbins = c(50, 10),
minexpcount = 5
)
A list of indices
counts
cumulative distribution function
=function(x) -99, function to estimated parameters, or -99
=c(50, 10) number of bins
=5 smallest expected count per bin