covW | R Documentation |

calculate the pooled within groups covariance matrix

```
covW(data, groups, robust = c("classical", "mve", "mcd"), ...)
```

`data` |
a matrix containing data |

`groups` |
grouping variables |

`robust` |
character: determines covariance estimation methods in case |

`...` |
additional parameters passed to |

Returns the pooled within group covariance matrix. The attributes contain the entry means, containing the respective group means.

Stefan Schlager

`cov`

, `typprobClass`

```
data(iris)
poolCov <- covW(iris[,1:4],iris[,5])
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.