logCV: Coefficient of Variation for Log-transformed Data

View source: R/variance.R

logCVR Documentation

Coefficient of Variation for Log-transformed Data

Description

A less known fact is that for log-transformed data you can't just take 100 This function implements the correct way of getting a CV when you apply it on log-transformed data. There's another version somewhere on the internets that has (log(10)^2 - var(x)) instead of just var(x). I'm not sure why

Usage

logCV(x, na.rm = FALSE)

Arguments

x

A vector of log-normally distributed data

na.rm

Whether or not to ignore NAs

Examples

logCV(c(0.8, 0.9, 0.78))

dmarginean/aqua documentation built on March 16, 2024, 1:03 a.m.