Column-wise pooled variances across groups {Rfast2} | R Documentation |
Column-wise pooled variances across groups
Description
Column-wise pooled variances across groups.
Usage
pooled.colVars(x, ina, std = FALSE)
Arguments
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. |
Details
This function cacluates the pooled variance (or standard deviation) for a range of groups for each column.
Value
A vector with the pooled column variances or standard deviations.
Author(s)
Michail Tsagris.
R implementation and documentation: Michail Tsagris mtsagris@uoc.gr and Manos Papadakis papadakm95@gmail.com.
See Also
Examples
pooled.colVars( as.matrix(iris[, 1:4]), as.numeric(iris[, 5]) )
[Package Rfast2 version 0.1.5.2 Index]