View source: R/chi.square.goodness.of.fit.simple.R
chi.square.goodness.of.fit.simple | R Documentation |
Calculates chi square goodness of fit test for given contingency table.
chi.square.goodness.of.fit.simple(
observed.frequencies,
expected.frequencies = chi.square.2d.expected.frequencies(observed.frequencies),
alternative = c("two.sided", "greater", "less"),
conf.level = 0.95
)
observed.frequencies |
A matrix of values to test. |
expected.frequencies |
A matrix of values to compare with observed.frequencies. |
alternative |
The alternative hypothesis to use for the test computation. |
conf.level |
The confidence level for this test, between 0 and 1. |
The results of the statistical test.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.