Learn R Programming

RVAideMemoire (version 0.9-6)

cramer.cor: Cramer's association coefficient

Description

Compute the Cramer's association coefficient between 2 nomial variables, and its confidence interval (by bootstraping).

Usage

cramer.cor(var1, var2, rep = 1000, conf.level = 0.95)

Arguments

var1
factor (first variable).
var2
factor (second variable).
rep
number of replicates for bootstrap.
conf.level
confidence level.

Value

  • conf.levelconfidence level.
  • repnumber of replicates.
  • VCramer's coefficient.
  • intervalconfidence interval.

See Also

boot

Examples

Run this code
var1<-sample(LETTERS[1:3],15,replace=TRUE)
var2<-sample(letters[1:3],15,replace=TRUE)
cramer.cor(var1,var2)

Run the code above in your browser using DataLab