View source: R/cov_estim_precond_sf.R
cov_estim_precond_sf | R Documentation |
Computes a specific estimator of the covariance matrix after preconditioning the data with a Single Factor (SF) model - the implicit market portfolio.
cov_estim_precond_sf(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.
data(rets_m)
sigma_lwnl_sf <- cov_estim_precond_sf(rets_m,
precond_est_func = cov_estim_lwnl, bandwidth_speed = NULL
)[[1]]
sigma_glasso_sf <- cov_estim_precond_sf(rets_m,
precond_est_func = cov_estim_glasso, rho = 0.01
)[[1]]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.