R: Robust and classical variation matrix

variation {robCompositions} | R Documentation

## Robust and classical variation matrix

### Description

Estimates the variation matrix with robust methods.

### Usage

    variation(x, robust = TRUE)

### Arguments

`x` | data frame or matrix with positive entries
`robust` | if FALSE, standard measures are used.

### Details

The variation matrix is estimated for a given compositional data set. Instead of using the classical standard deviations the `mad` is used when parameter robust is set to TRUE.

### Value

The (robust) variation matrix.

### Author(s)

Matthias Templ

### References

Aitchison, J. (1986) The Statistical Analysis of Compositional Data Monographs on Statistics and Applied Probability. Chapman \& Hall Ltd., London (UK). 416p.

### Examples

    data(expenditures)
    variation(expenditures)
    variation(expenditures, robust=FALSE)

[Package robCompositions version 2.0.6 Index]