50% off: Unlimited data and AI learning.
State of Data and AI Literacy Report 2025

Morpho (version 1.0-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