Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mayer79/r-confidence-intervals-cramers-v

Function to compute confidence intervals for Cramér's V measure of association
https://github.com/mayer79/r-confidence-intervals-cramers-v

Last synced: about 1 month ago
JSON representation

Function to compute confidence intervals for Cramér's V measure of association

Awesome Lists containing this project

README

        

# R-confidence-intervals-cramers-V

Function to compute confidence intervals for Cramér's V measure of association, see [1] (with correction). Useful to express how **strong** the relation between the two categorical variables truely is with specified (approximate) certainty. A significant result of the chi-squared test of accociation goes along with a positive lower bound of the one-sided confidence interval.

## Example in R
```
library(MBESS)
pw <- iris$Petal.Width > 1
ct <- chisq.test(pw, iris$Species)
confintCramersV(ct, alternative = "greater") # Estimate 0.91, lower c.i. 0.77
confintCramersV(ct, conf.level = 0.9) # [0.77, 1]
```
[1] Liebetrau, A. M. (1983). Quantitative Applications in the Social Sciences: Measures of association Thousand Oaks, CA: SAGE Publications Ltd