Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

pooled.colVars

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]) )

Rfast2

A Collection of Efficient and Extremely Fast R Functions II

v0.0.9
GPL (>= 2.0)
Authors
Manos Papadakis, Michail Tsagris, Stefanos Fafalios and Marios Dimitriadis.
Initial release
2021-03-21

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.