internal.chisq.test.gf {simitation} | R Documentation |
Internal function for Chi-Squared Test of Goodness of Fit
Description
Computes the chi-squared test for the given categorical data.
Usage
internal.chisq.test.gf(x, hypothesized.probs = NULL, correct = TRUE)
Arguments
x |
A categorical variable. |
hypothesized.probs |
Hypothesized probabilities for each level of x. |
correct |
A logical indicating if a continuity correction should be applied. |
Value
A data frame containing the test statistic, degrees of freedom, and p-value.
[Package simitation version 0.0.7 Index]