Learn R Programming

shipunov (version 1.17.1)

VTcoeffs: Effect sizes of association between categorical variables

Description

Effect sizes of association between categorical variables

Usage

VTcoeffs(table, correct=FALSE, ...)

Value

Data frame with coefficients, values and tables.

Arguments

table

Contingency table

correct

Perform continuity correction in underlying chi-square test?

...

Additional arguments to underlying chisq.test()

Author

Alexey Shipunov

Details

Association between categorical variables.

Calculates Cramer's V and Tschuprow's, original and corrected (Bergsma, 2013)

Alternative: vcd::assocstats()

Includes magnitude interpretation for original Cramer's V (for df < 6).

Examples

Run this code
x <- margin.table(Titanic, 1:2)
VTcoeffs(x)
VTcoeffs(x)[2, ] # most practical

Run the code above in your browser using DataLab