chisq.conf: Confidence Functions for Pearson's Chi-squared Parameter

Description Usage Arguments Value References Examples

View source: R/multinomial.R

Description

Confidence functions for Pearson's chi-squared parameter for an I x J contingency table using the profile likelihood.

Usage

1
chisq.conf(N, plot = TRUE, conf.level = 0.95)

Arguments

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

Value

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.

References

Tore Schweder and Nils Lid Hjort. Confidence, likelihood, probability. Vol. 41. Cambridge University Press, 2016.

Examples

 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)

ddarmon/clp documentation built on Jan. 25, 2021, 6:22 p.m.