# associations.folder: Association measures between categorical variables of the... In dad: Three-Way / Multigroup Data Analysis Through Densities

 association measures for folder R Documentation

## Association measures between categorical variables of the data frames of a folder

### Description

Computes the pairwise association measures (Cramer's V, Pearson's contingency coefficient, phi, Tschuprow's T) between the categorical variables of an object of class `folder`. The computation is carried out using the functions `cramer.data.frame`, `tschuprow.data.frame`, `pearson.data.frame` or `phi.data.frame`. These functions are built from corresponding functions of the package `DescTools` (see `Assocs`)

### Usage

``````cramer.folder(xf)
tschuprow.folder(xf)
pearson.folder(xf)
phi.folder(xf)
``````

### Arguments

 `xf` an object of class `folder` that is a list of data frames with the same column names. Its columns should be factors, otherwise there is a warning.

### Value

A list the length of which is equal to the number of data frames of the folder. Each element of the list is a square matrice giving the pairwise association measures of the variables of the corresponding data frame.

### Author(s)

Rachid Boumaza, Pierre Santagostini, Smail Yousfi, Sabine Demotes-Mainard

### Examples

``````data(roses)
xr = roses[,c("Sha", "Den", "Sym", "rose")]
xr\$Sha = cut(xr\$Sha, breaks = c(0, 5, 7, 10))
xr\$Den = cut(xr\$Den, breaks = c(0, 4, 6, 10))
xr\$Sym = cut(xr\$Sym, breaks = c(0, 6, 8, 10))
xfolder = as.folder(xr, groups = "rose")
cramer.folder(xfolder)
pearson.folder(xfolder)
phi.folder(xfolder)
tschuprow.folder(xfolder)
``````

dad documentation built on Aug. 30, 2023, 5:06 p.m.