View source: R/chi_test_cont.R
chi_test_cont | R Documentation |
This function performs a number of chi-square gof tests for continuous data
chi_test_cont(
x,
pnull,
w = function(x) -99,
phat = function(x) -99,
qnull = NA,
nbins = c(50, 10),
rate = 0,
Range = c(-99999, 99999),
minexpcount = 5,
ChiUsePhat = TRUE,
allbins
)
x |
data set |
pnull |
cdf under the null hypothesis |
w |
function to find weights of observations, returns -99 if data is unweighted |
phat |
=function(x) -99, estimated parameters, or starting values of multi-D minimum chi square minimization, or -99 if no estimation is done |
qnull |
=NA quantile function, if available |
nbins |
=c(50, 10) number of bins for chi-square tests |
rate |
=0, rate of Poisson if sample size is random |
Range |
=c(-99999, 99999) limits of possible observations, if any |
minexpcount |
=5 minimal expected bin count required |
ChiUsePhat |
=TRUE, if TRUE param is estimated parameters and no minimization is used |
allbins |
set of bins to use |
A numeric matrix of test statistics, degrees of freedom and p.values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.