covW {Morpho} | R Documentation |
calculate the pooled within groups covariance matrix
Description
calculate the pooled within groups covariance matrix
Usage
covW(data, groups, robust = c("classical", "mve", "mcd"), ...)
Arguments
data |
a matrix containing data |
groups |
grouping variables |
robust |
character: determines covariance estimation methods in case |
... |
additional parameters passed to |
Value
Returns the pooled within group covariance matrix. The attributes contain the entry means, containing the respective group means.
Author(s)
Stefan Schlager
See Also
Examples
data(iris)
poolCov <- covW(iris[,1:4],iris[,5])
[Package Morpho version 2.12 Index]