assoc.xx {descriptio} | R Documentation |

## Bivariate association measures between pairs of variables.

### Description

Computes bivariate association measures between every pairs of variables from a data frame.

### Usage

```
assoc.xx(x, weights = NULL, correlation = "kendall",
na.rm.cat = FALSE, na.value.cat = "NA", na.rm.cont = FALSE,
nperm = NULL, distrib = "asympt", dec = c(3,3))
```

### Arguments

`x` |
the data frame of variables |

`weights` |
numeric vector of weights. If NULL (default), uniform weights (i.e. all equal to 1) are used. |

`correlation` |
character. The type of measure of correlation measure to use between two continuous variables : "pearson", "spearman" or "kendall" (default). |

`na.rm.cat` |
logical, indicating whether NA values in the categorical variables should be silently removed before the computation proceeds. If FALSE (default), an additional level is added to the categorical variables (see na.value.cat argument). |

`na.value.cat` |
character. Name of the level for NA category. Default is "NA". Only used if na.rm.cat = FALSE. |

`na.rm.cont` |
logical, indicating whether NA values in the continuous variables should be silently removed before the computation proceeds. Default is FALSE. |

`nperm` |
numeric. Number of permutations for the permutation test of independence. If NULL (default), no permutation test is performed. |

`distrib` |
the null distribution of permutation test of independence can be approximated by its asymptotic distribution ( |

`dec` |
vector of 2 integers for number of decimals. The first value if for association measures, the second for permutation p-values. Default is c(3,3). |

### Details

The function computes an association measure : Pearson's, Spearman's or Kendall's correlation for pairs of numeric variables, Cramer's V for pairs of factors and eta-squared for pairs numeric-factor. It can also compute the p-value of a permutation test of association for each pair of variables.

### Value

A table with the following elements :

`measure` |
: name of the association measure |

`association` |
: value of the association measure |

`permutation.pvalue` |
: p-value from the permutation test |

### Author(s)

Nicolas Robette

### See Also

`darma`

, `assoc.twocat`

, `assoc.twocont`

, `assoc.catcont`

, `condesc`

, `catdesc`

, `assoc.yx`

### Examples

```
data(iris)
iris2 = iris
iris2$Species = factor(iris$Species == "versicolor")
assoc.xx(iris2, nperm = 10)
```

*descriptio*version 1.3 Index]