| chi_disc_test | R Documentation |
This function does the chi square goodness-of-fit test for discrete data in two dimensions.
chi_disc_test(
dta,
pnull,
dnull,
phat = function(x) -99,
minexpcount = 5,
SuppressMessages = FALSE
)
dta |
a matrix of numbers. |
pnull |
distribution function to calculate expected counts. |
dnull |
density to calculate expected counts. |
phat |
=function(x) -99, function to estimate parameters of pnull. |
minexpcount |
=5 minimum counts required per bin |
SuppressMessages |
=TRUE, should info be shown? |
a vector with statistic, p value and degree of freedom
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.