This function performs a number of gof tests for discrete data and finds the adjusted p value
gof_test_disc_adj(
x,
pnull,
rnull,
vals,
phat = function(x) -99,
TS,
TSextra = NA,
nbins = c(50, 10),
rate = 0,
B = c(5000, 1000),
minexpcount = 5,
ChiUsePhat = TRUE,
doMethods = c("Wassp1", "W", "AD", "s-P")
)
A numeric matrix of test statistics and p.values
data set (the counts)
cumulative distribution function under the null hypothesis
routine to generate data under the null hypothesis
a vector of values of discrete random variables
=function(x) -99, function to estimate parameters from the data, or -99 if no parameters aare estimated
=NA, user supplied function to find test statistics
=NA, list passed to TS, if desired
=c(50, 10) number of bins for chi-square tests
=0 rate of Poisson if sample size is random, 0 if sample size is fixed
=c(5000, 1000) number of simulation runs for p values and for adjusted p value
=5 minimal expected bin count required
= TRUE, if TRUE param is estimated parameter, otherwise minimum chi square method is used.
Methods to include in tests