Percent coefficient of variation (%CV) based on log-transformation
Source:R/functions-math.R
cv_log.RdComputes the percent coefficient of variation (CV) based on the log-transformation of the input data. This can be more robust in certain cases, especially when the data is not normally distributed.
References
Canchola et al. (2017) Correct use of percent coefficient of variation (% CV) formula for log-transformed data. MOJ Proteomics Bioinform. 2017;6(4):316‒317. DOI: 10.15406/mojpb.2017.06.00200
Examples
cv_log(c(5, 6, 3, 4, 5, NA), na.rm = TRUE)
#> [1] 27.082