| chi_cont_test | R Documentation |
This function does the chi square goodness-of-fit test for continuous data in two dimensions.
chi_cont_test(
dta,
pnull,
phat = function(x) -99,
Ranges = matrix(c(-Inf, Inf, -Inf, Inf), 2, 2),
nbins = c(5, 5),
minexpcount = 5,
SuppressMessages = TRUE
)
dta |
a matrix of numbers. |
pnull |
function to calculate expected counts. |
phat |
=function(x) -99, function to estimate parameters of pnull. |
Ranges |
=matrix(c(-Inf, Inf, -Inf, Inf),2,2), a 2x2 matrix with lower and upper bounds |
nbins |
=c(5,5) number of bins in x and y direction |
minexpcount |
=5 minimum counts required per bin |
SuppressMessages |
=FALSE, should info be shown? |
a matrix with statistics, p values and degree of freedoms
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.