CoefVar {MVar}R Documentation

Coefficient of variation of the data.

Description

Find the coefficient of variation of the data, either overall or per column.

Usage

CoefVar(data, type = 1)

Arguments

data

Data to be analyzed.

type

1 Coefficient of overall variation (default),
2 Coefficient of variation per column.

Value

Coefficient of variation, either overall or per column.

Author(s)

Paulo Cesar Ossani

Marcelo Angelo Cirillo

References

Ferreira, D. F.; Estatistica Basica. 2 ed. rev. Lavras: UFLA, 2009. 664 p.

Examples

data(DataQuan) # data set

data <- DataQuan[,2:8]

res <- CoefVar(data, type = 1) # Coefficient of overall variation
round(res,2)

res <- CoefVar(data, type = 2) # Coefficient of variation per column
round(res,2)

[Package MVar version 2.2.2 Index]