Description Usage Arguments Value References Examples
View source: R/cov-estim-factor.R
Computes a specific estimator of the covariance matrix after preconditioning the data with a single factor model - the implicit market portfolio.
1 | sigma_estim_precond(data, zeromean_log = FALSE, precond_est_func = NULL, ...)
|
data |
an nxp data matrix. |
zeromean_log |
a logical, indicating whether the data matrix has zero means (TRUE) or not (FALSE). Default value is FALSE. |
precond_est_func |
a function for estimating the precondtioned covariance matrix. |
... |
further arguments to be parsed to precond_est_func. |
a list with the following entries
a pxp estimated covariance matrix.
an estimation specific tuning parameter, here the bandwidth speed.
1 2 3 4 5 6 | data(sp200)
sp_rets <- sp200[,-1]
sigma_lwnl_sf <- sigma_estim_precond(sp_rets,
precond_est_func=sigma_estim_lwnl, bandwidth_speed=NULL)[[1]]
sigma_glasso_sf <- sigma_estim_precond(sp_rets,
precond_est_func=sigma_estim_glasso, rho=0.01)[[1]]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.