assoc: Association

nom.ccR Documentation

Association

Description

Computation of association and correlation measure:

  • nom.cc (corrected) contingency coefficent

  • 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, ...)

Arguments

tab

table: contingency table with absolute frequencies

correct

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

...

further parameters (unused)

Value

numeric

Examples

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)

sigbertklinke/exams2moodle documentation built on July 6, 2023, 3:26 p.m.