This function creates several type of bins for continuous data
make_bins_cont(
x,
pnull,
qnull = NA,
phat = function(x) -99,
DataBased = FALSE,
nbins = c(50, 10),
minexpcount = 5,
Range = c(-99999, 99999)
)
A list of bins and bin probabilities
data set
cdf under the null hypothesis
=NA quantile function, if available
=function(x) -99 parameters for pnull
=FALSE bins based on data, not expected counts
=c(50, 10) number of bins
=5 smallest expected count per bin
=c(-99999, 99999) limits of possible observations, if any