ci.cramer: Confidence interval for Cramer's V

View source: R/statpsych3.R

ci.cramerR Documentation

Confidence interval for Cramer's V

Description

Computes a confidence interval for a population Cramer's V coefficient of nominal association for an r x s contingency table and its approximate standard error. The confidence interval is based on a noncentral chi-square distribution, and an approximate standard error is recovered from the confidence interval.

Usage

ci.cramer(alpha, chisqr, r, c, n)

Arguments

alpha

alpha value for 1-alpha confidence

chisqr

Pearson chi-square test statistic for independence

r

number of rows in contingency table

c

number of columns in contengency table

n

sample size

Value

Returns a 1-row matrix. The columns are:

  • Estimate - estimate of Cramer's V

  • SE - recovered standard error

  • LL - lower limit of the confidence interval

  • UL - upper limit of the confidence interval

References

\insertRef

Smithson2003statpsych

Examples

ci.cramer(.05, 19.21, 2, 3, 200)

# Should return:
#        Estimate     SE     LL     UL
# [1,]     0.3099 0.0674 0.1888 0.4529
 


statpsych documentation built on July 9, 2023, 6:50 p.m.