pubh (version 1.3.2)

rel_dis: Relative Dispersion.

Description

Calculates the coefficient of variation (relative dispersion) of a variable. The relative dispersion is defined as the standard deviation over the arithmetic mean.

Usage

rel_dis(x)

Value

The coefficient of variation (relative dispersion).

Arguments

x

A numerical variable. NA's observations are removed by default.

Examples

Run this code
height <- rnorm(100, 170, 8)
rel_dis(height)

Run the code above in your browser using DataLab