MeanCov | R Documentation |
Returns, for some multivariate data, the mean vector and covariance matrix.
MeanCov(x)
x |
a numeric data matrix. |
A list containing:
locations |
The mean vector as computed by |
scatter |
The covariance matrix as computed by |
Klaus Nordhausen
colMeans
, cov
X <- rmvnorm(200, 1:3, diag(2:4))
MeanCov(X)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.