View source: R/chi_power_disc.R
chi_power_disc | R Documentation |
This function finds the power of various chi-square tests for continuous data
chi_power_disc(
pnull,
ralt,
param_alt,
phat = function(x) -99,
alpha = 0.05,
B = 1000,
nbins = c(50, 10),
rate = 0,
minexpcount = 5,
ChiUsePhat = TRUE
)
pnull |
function to find cdf under null hypothesis |
ralt |
function to generate data under alternative hypothesis |
param_alt |
vector of parameter values for distribution under alternative hypothesis |
phat |
=function(x) -99, routine to estimate parameters |
alpha |
=0.05, the level of the hypothesis test |
B |
=1000 number of simulation runs to find power |
nbins |
=c(50,10), number of bins for chi square tests |
rate |
=0 rate of Poisson if sample size is random, 0 if sample size is fixed |
minexpcount |
=5 minimal expected bin count required |
ChiUsePhat |
= TRUE, should chi square use minimum chi square method? |
A numeric matrix of power values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.