covClassic | R Documentation |
Compute an estimate of the covariance/correlation matrix and location vector using classical methods.
Its main intention is to return an object compatible to that
produced by covRob
, but fit using classical methods.
covClassic(data, corr = FALSE, center = TRUE, distance = TRUE,
na.action = na.fail, unbiased = TRUE, ...)
data |
a numeric matrix or data frame containing the data. |
corr |
a logical flag. If |
center |
a logical flag or a numeric vector of length |
distance |
a logical flag. If |
na.action |
a function to filter missing data. The default |
unbiased |
logical indicating if an unbiased estimate of the covariance matrix is should becomputed. If false, the maximum likelihood estimate is computed. |
... |
additional . |
a list with class “covClassic” containing the following elements:
call |
an image of the call that produced the object with all the arguments named. |
cov |
a numeric matrix containing the estimate of the covariance/correlation matrix. |
center |
a numeric vector containing the estimate of the location vector. |
dist |
a numeric vector containing the squared Mahalanobis distances. Only
present if |
corr |
a logical flag. If |
Originally, and in S-PLUS, this function was called cov
; it has
been renamed, as that did mask the function in the standard package
stats.
covRob
,
var
,
cov.wt
.
data(stack.dat)
covClassic(stack.dat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.