Its main intention is to return an object compatible to that
produced by covRob, but fit using classical methods.
ccov(data, corr = FALSE, center = TRUE, distance = TRUE,
na.action = na.fail, unbiased = TRUE, control = list())corr = TRUE then the estimated correlation matrix is computed.p (where p is the number of columns of x) specifying the center. If center = TRUE then the center is estimated. Otherwise the center is taken to be 0.distance = TRUE the Mahalanobis distances are computed.na.fail produces an error if missing values are present. An alternative is na.omit which deletes observations that contain one or more missing values.fit.models framework.cov" with components:distance = TRUE in the call.corr = TRUE then cov
contains an estimate of the correlation matrix of x.covRob,
var,
cov.wt.data(stack.dat)
ccov(stack.dat)Run the code above in your browser using DataLab