cov.weighted
Weighted covariance matrices
Description
Returns a list containing estimates of the weighted mean and covariance matrix of the data.
Usage
Arguments
| Argument | Description |
|---|---|
x |
a matrix or data frame. As usual, rows are observations and columns are variables. |
weights |
a non-negative and non-zero vector of weights for each observation. Its length must equal the number of rows of x . |
Details
The covariance matrix is divided by the number of observations, which arise for
instance, when we use the class of elliptical contoured distributions. This differs
from the behaviour of function cov.wt .
Value
A list containing the following named components:
| Value | Description |
|---|---|
mean |
an estimate for the center (mean) of the data. |
cov |
the estimated (weighted) covariance matrix. |
Seealso
References
Clarke, M.R.B. (1971). Algorithm AS 41: Updating the sample mean and dispersion matrix. Applied Statistics 20 , 206-209.