CramersV: Calculates Cramer's V

View source: R/helper.functions.r

CramersVR Documentation

Calculates Cramer's V

Description

Calculates Cramer's V, a measure of association to gauge the strength of the relationship between two nominal-level variables. A score of 0 indicates no relationship; a score of 1 indicates a perfect relationship.

Usage

CramersV(chi, r, c, n)

Arguments

chi

A number equal to the Chi-Squared statistic

r

A number equal to the number of rows

c

A number equal to the number of columns

n

A number equal to the sample size

Value

The Cramer's V statistic, a number between 0 and 1.

Examples

  library(RCPA3)
  
  CramersV(84.18, 2, 2, 1315)
  CramersV(chi=84.18, r=2, c=2, n=1315)

RCPA3 documentation built on May 29, 2024, 12:19 p.m.

Related to CramersV in RCPA3...