Description Usage Arguments Value References Examples
Confidence functions for Pearson's chi-squared parameter for an I x J contingency table using the profile likelihood.
1 | chisq.conf(N, plot = TRUE, conf.level = 0.95)
|
N |
an I x J matrix of counts |
plot |
whether to plot the confidence density and curve |
conf.level |
the confidence level for the confidence interval indicated on the confidence curve |
A list containing the confidence functions pconf, dconf, cconf, and qconf for Pearson's chi-squared parameter, as well as the P-curve and S-curve.
Tore Schweder and Nils Lid Hjort. Confidence, likelihood, probability. Vol. 41. Cambridge University Press, 2016.
1 2 3 4 5 6 7 8 9 10 11 | # Galton's data on assortative mating according to temper.
# Columns: wife (good / bad) temper
# Rows: husband (good / bad) temper
# reported on page 78 of *Confidence, Likelihood, Probability*.
N <- matrix(c(24, 27,
34, 26), nrow = 2, byrow = TRUE)
chisq.conf(N)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.