CramerV: Cramer Contingence Coefficient

Description Usage Arguments Details Value References Examples

Description

Measure a degree of dependence between two variables, this number should be between 0 and 1.

Usage

1
CramerV(x, y = NULL, digits = 4, ...)

Arguments

x

A numeric vector or matrix. x, and y can also both be factors.

y

A numeric vector; ignored if x is a matrix. If x is a factor, y should be a factor of the same length.

digits

Integer indicating the number of decimal places (round) or significant digits (signif) to be used. Negative values are allowed (see ‘Details’).

...

Additional arguments provided by chisq.test() from stats package.

Details

Rounding to a negative number of digits means rounding to a power of ten, so for example round(x, digits = -2) rounds to the nearest hundred.

Value

A numeric value indicating the Cramer Contingence Coefficient.

References

Conover, W. J. (1999) "Practical Nonparametric Statistics", 3rd Edition, Jhon Wiley & Sons.Inc

Examples

1
2
x<- matrix(c(28,5,0,7),ncol=2)
CramerV(x)

bencuben/nparametric documentation built on July 15, 2020, 2:54 a.m.