Find the power of various gof tests for continuous data.
gof_power_cont(
pnull,
rnull,
ralt,
param_alt,
w = function(x) -99,
phat = function(x) -99,
TS,
TSextra = NA,
alpha = 0.05,
Range = c(-Inf, Inf),
B = 1000,
nbins = c(100, 10),
rate = 0,
maxProcessor,
minexpcount = 5,
ChiUsePhat = TRUE
)
A numeric matrix of power values.
function to find cdf under null hypothesis
function to generate data under null hypothesis
function to generate data under alternative hypothesis
vector of parameter values for distribution under alternative hypothesis
=function(x) -99, function to calculate weights, returns -99 if no weights
=function(x) -99, function to estimate parameters from the data, or -99 if no parameters aare estimated
user supplied function to find test statistics, if any
=NA, list provided to TS
=0.05, the level of the hypothesis test
=c(-Inf, Inf) limits of possible observations, if any
=1000 number of simulation runs
=c(100,10), number of bins for chi square tests.
=0 rate of Poisson if sample size is random, 0 if sample size is fixed
maximum of number of processors to use, 1 if no parallel processing is needed or number of cores-1 if missing
=5 minimal expected bin count required
=TRUE, if TRUE param is estimated parameter, otherwise minimum chi square method is used.