MeanCov: Mean Vector and Covariance Matrix

View source: R/MeanCov.R

MeanCovR Documentation

Mean Vector and Covariance Matrix

Description

Returns, for some multivariate data, the mean vector and covariance matrix.

Usage

MeanCov(x)

Arguments

x

a numeric data matrix.

Value

A list containing:

locations

The mean vector as computed by colMeans.

scatter

The covariance matrix as computed by cov.

Author(s)

Klaus Nordhausen

See Also

colMeans, cov

Examples

X <- rmvnorm(200, 1:3, diag(2:4))
MeanCov(X)

ICS documentation built on Sept. 21, 2023, 9:07 a.m.