Column-wise pooled variances across groups | R Documentation |
Column-wise pooled variances across groups.
pooled.colVars(x, ina, std = FALSE)
x |
A matrix with the data. |
ina |
A numerical vector specifying the groups. If you have numerical values, do not put zeros, but 1, 2, 3 and so on. |
std |
A boolean variable specyfying whether you want the variances (FALSE) or the standard deviations (TRUE) of each column. |
This function cacluates the pooled variance (or standard deviation) for a range of groups for each column.
A vector with the pooled column variances or standard deviations.
Michail Tsagris.
R implementation and documentation: Michail Tsagris mtsagris@uoc.gr and Manos Papadakis papadakm95@gmail.com.
colmeansvars
pooled.colVars( as.matrix(iris[, 1:4]), as.numeric(iris[, 5]) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.