Description Usage Arguments Details Value References Examples
This function computes the shrinked covariance matrix from the sample covariance matrix and a structured estimator. The optimal shrinkage intensity is estimated too.
1 | cov_shrink(data, na.rm = FALSE, use = "everything")
|
data |
matrix or data.frame containing only numeric variables |
na.rm |
matrix or data.frame containing only numeric variables |
use |
character string as in |
The estimator computes a weighted mean of two covariance estimators. The unstructured estimator is the sample covariance matrix denoted as S and a structured estimator dentoed as F. The returned covariance matrix is computed by the following equation
δ F + (1 - δ) S
with δ denoting the weighting term taking values between 0 and 1.
The structured estimator contains the following entries
f_{ij} = s_{ij}^2 \qquad i = j \\ f_{ij} = \bar{r} s_{ii} s_{jj}
In case missing values are present the
list containing the shrinked covariance matrix and the optimal shrinkage parameter δ.
Ledoit, Olivier and Wolf, Michael, Honey, I Shrunk the Sample Covariance Matrix (June 2003). UPF Economics and Business Working Paper No. 691.
1 2 3 4 5 6 7 8 9 10 11 12 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.