This function runs the chi-square test for continuous or discrete data
chi_power(
rxy,
alpha = 0.05,
B = 1000,
xparam,
yparam,
nbins = c(50, 10),
minexpcount = 5,
typeTS
)
A matrix of power values
a function to generate data
=0.05 type I error probability of test
=1000 number of simulation runs
vector of parameter values
vector of parameter values
=c(50, 10) number of desired bins
=5 smallest number of counts required in each bin
type of problem, continuous/discrete, with/without weights