CramersV: Cramers' V Test

Description Usage Arguments Author(s) Examples

Description

Conduct Cramers V test. Please populate or delete missing value before runnign this function.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
CramersV(x,y=NULL,Bias_Cor=FALSE)

## Default S3 method:
CramersV(x, y = NULL, Bias_Cor = FALSE)

## S3 method for class 'data.frame'
CramersV(x, y = NULL, Bias_Cor = FALSE)

## S3 method for class 'matrix'
CramersV(x, y = NULL, Bias_Cor = FALSE)

Arguments

x

It could be non-numerical variable, data.frame or matrix.

y

Provided when x is a vector. Will be ignored when x is a data.frame or matrix.

Bias_Cor

logic. Whether a bias correction is needed.

Author(s)

Sixiang Hu

Examples

1
2
3
4
5
x <- sample(1:5,100,rep=TRUE)
y <- sample(1:5,100,rep=TRUE)
z <- sample(1:5,100,rep=TRUE)
dm <- as.matrix(cbind(x,y,z))
CramersV(dm)

SixiangHu/DataMan documentation built on May 9, 2019, 1:48 p.m.