View source: R/cov_estim_ridge.R
cov_estim_ridge | R Documentation |
Computes the covariance matrix estimator with a ridge-penalty.
cov_estim_ridge(data, rho)
data |
an nxp data matrix. |
rho |
a double, indicating the ridge penalty. |
The ridge-penalized covariance matrix for a data matrix X is computed with the following formula:
\hat{\Sigma}=V\left(\rho C+(1-\rho)I\right)V,
where V is the sample volatility matrix, I is a pxp identity matrix,
C is the sample correlation matrix and \rho
is the user-sapplied ridge penalty parameter.
a list with the following entries
a pxp estimated covariance matrix.
an estimation specific tuning parameter, here the user-supplied ridge penalty \rho
.
warton2008penalizedcovestim
data(rets_m)
sigma_ridge <- cov_estim_ridge(rets_m, rho = 0.01)[[1]]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.