Learn R Programming

exams.forge (version 1.0.10)

nom.cc: Association and Correlation

Description

Computation of the following association and correlation measures:

  • nom.cc (corrected) contingency coefficient

  • nom.cramer Cramer's V or Phi

  • ord.spearman Spearman's rank correlation

  • ord.kendall Kendall's rank correlation

Usage

nom.cc(tab, correct = FALSE)

nom.cramer(tab, ...)

ord.spearman(tab, ...)

ord.kendall(tab, ...)

cc_coef(tab, correct = FALSE)

cramer_vf(tab, ...)

cramer_coef(tab, ...)

kendall_corr(tab, ...)

spearman_corr(tab, ...)

rs_corr(tab, ...)

Value

numeric

Arguments

tab

table: contingency table with absolute frequencies

correct

logical: if a correction should be applied (default: FALSE)

...

further parameters

Examples

Run this code
tab <- matrix(round(10*runif(15)), ncol=5)
nom.cc(tab)
nom.cc(tab, correct=TRUE)
nom.cramer(tab)
ord.spearman(tab)
ord.kendall(tab)

Run the code above in your browser using DataLab