# CoefQuartVar: R6 Coefficient of Quartile Variation (cqv) In MaaniBeigy/DescObs: Versatile Exploration of Data

## Description

The R6 class `CoefQuartVar` for the coefficient of quartile variation (cqv)

## Arguments

 `x` An `R` object. Currently there are methods for numeric vectors `na.rm` a logical value indicating whether `NA` values should be stripped before the computation proceeds. `digits` integer indicating the number of decimal places to be used.

## Details

Coefficient of Quartile Variation

cqv = ((q3-q1)/(q3 + q1))*100 ,

where q3 and q1 are third quartile (i.e., 75th percentile) and first quartile (i.e., 25th percentile), respectively. The cqv is a measure of relative dispersion that is based on interquartile range (iqr). Since cqv is unitless, it is useful for comparison of variables with different units. It is also a measure of homogeneity [1, 2].

## References

 Bonett, DG., 2006, Confidence interval for a coefficient of quartile variation, Computational Statistics & Data Analysis, 50(11), 2953-7, DOI: http://doi.org/10.1016/j.csda.2005.05.007

## Examples

 ```1 2 3 4 5 6 7 8``` ```x <- c( 0.2, 0.5, 1.1, 1.4, 1.8, 2.3, 2.5, 2.7, 3.5, 4.4, 4.6, 5.4, 5.4, 5.7, 5.8, 5.9, 6.0, 6.6, 7.1, 7.9 ) CoefQuartVar\$new(x)\$est() cqv_x <- CoefQuartVar\$new(x, digits = 2) cqv_x\$est() R6::is.R6(cqv_x) ```

MaaniBeigy/DescObs documentation built on May 23, 2019, 9:37 a.m.