CoefVar_English: Coefficient of variation of the data.

CoefVarR 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)

MVar documentation built on Aug. 19, 2023, 5:12 p.m.