cov_estim_efm | R Documentation |
Computes the Exact Factor Model (EFM) estimator of the covariance matrix.
cov_estim_efm(data, factors = NULL, zeromean_log = FALSE)
data |
an nxp data matrix. |
factors |
a nxf matrix with factors. Default value is NULL and the factor is equal to the cross-sectional average of all the variables in the data. |
zeromean_log |
a logical, indicating whether the data matrix has zero means (TRUE) or not (FALSE). Default value is FALSE. |
The EFM covariance estimator is calculated with the following formula:
\hat{\Sigma} = B\hat{\Sigma}_F B' + \hat{\Sigma_u},
where \hat{\Sigma}_F
is the sample covariance matrix of the common factors and
\hat{\Sigma}_u
is the covariaance matrix of residuals, assumed to have zero correlation.
a list with the following entries
a pxp estimated covariance matrix.
an estimation specific tuning parameter, here NA.
data(rets_m)
sigma_efm <- cov_estim_efm(rets_m)[[1]]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.