powered by
Returns, for some multivariate data, the mean vector and covariance matrix.
MeanCov(x)
A list containing:
The mean vector as computed by colMeans.
colMeans
The covariance matrix as computed by cov.
cov
a numeric data matrix.
Klaus Nordhausen
colMeans, cov
X <- rmvnorm(200, 1:3, diag(2:4)) MeanCov(X)
Run the code above in your browser using DataLab