This function performs a number of chi-square gof tests for continuous data
chi_test_disc(
x,
pnull,
phat = function(x) -99,
nbins = c(50, 10),
rate = 0,
minexpcount = 5,
ChiUsePhat = TRUE,
allbins
)
A numeric matrix of test statistics, degrees of freedom and p.values
data set
cdf under the null hypothesis
=function(x) -99, function to estimate parameters, or starting values of multi-D minimum chi square minimization, or -99 if no parameters are estimated
=c(50, 10) number of bins for chi-square tests
=0, rate of Poisson if sample size is random
=5 minimal expected bin count required
= TRUE, if TRUE param is estimated parameter, otherwise minimum chi square method is used.
set of bins to use