Column and row wise coefficients of variation
Column and row wise coefficients of variation.
colcvs(x, ln = FALSE, unbiased = FALSE) rowcvs(x, ln = FALSE, unbiased = FALSE)
x |
A numerical matrix with the data. |
ln |
If you have log-normally distributed data (or assume you do), then set this to TRUE. |
unbiased |
A boolean variable indicating whether the unbiased for shpould be returned. This is applicable in case of small samples. |
The colum-wise coefficients of variation are calculated.
A vector with the coefficient of variation for each column or row.
Michail Tsagris
R implementation and documentation: Michail Tsagris <mtsagris@yahoo.gr> and Manos Papadakis <papadakm95@gmail.com>.
m <- rnorm(100, 10) x <- matrix(rnorm(100 * 100, m, 1), ncol = 100) a1 <- colcvs(x) a2 <- colcvs(x[1:25, ], unbiased = TRUE) a3 <- colcvs( exp(x), ln = TRUE) x <- NULL
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.