Learn R Programming

ICS (version 1.4-1)

MeanCov: Mean Vector and Covariance Matrix

Description

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

Usage

MeanCov(x)

Value

A list containing:

locations

The mean vector as computed by colMeans.

scatter

The covariance matrix as computed by cov.

Arguments

x

a numeric data matrix.

Author

Klaus Nordhausen

See Also

Examples

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

Run the code above in your browser using DataLab