logCV | R Documentation |
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
logCV(x, na.rm = FALSE)
x |
A vector of log-normally distributed data |
na.rm |
Whether or not to ignore NAs |
logCV(c(0.8, 0.9, 0.78))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.