Learn R Programming

Morpho (version 2.1)

covW: calculate the pooled within groups covariance matrix

Description

calculate the pooled within groups covariance matrix

Usage

covW(data, groups)

Arguments

data
a matrix containing data
groups
grouping variables

Value

  • Returns the pooled within group covariance matrix

See Also

cov, typprobClass

Examples

Run this code
data(iris)
poolCov <- covW(iris[,1:4],iris[,5])

Run the code above in your browser using DataLab