BinaryAssociation.RdBinaryAssociation produces a data.framed matrix of association measures between binary variables.
BinaryAssociation(X, Y = NULL, TYPE = "YuleQ", DIGITS = 3, ASMATRIX = F)
| X | either a binary variable or a data.frame containing binary variables (non binaries are discarted) |
|---|---|
| Y | =NULL only used of X is a binary variable |
| TYPE | ="YuleQ". Choose association measure among c("OddsRatio", "logOddsRatio", "YuleY", "YuleQ", "RR") |
| DIGITS | =3 Number of digits of association measures |
| ASMATRIX | = F if TRUE returned result is a KxK matrix not a data.frame with rownames as first column (default) |
a data.frame with colnames[1] indicating the TYPE or matrix if ASMATRIX = T)