cov_estim_wrapper: Wrapper Function for Covariance Estimation I

View source: R/cov_estim.R

cov_estim_wrapperR Documentation

Wrapper Function for Covariance Estimation I

Description

Estimates the covariance matrix of a dataset according to the user-defined function.

Usage

cov_estim_wrapper(data, est_func, res_all = FALSE, ...)

Arguments

data

an nxp data matrix.

est_func

an estimation function.

res_all

a logical, defining the return object. If FALSE, only the estimated covariance matrix is returned. If TRUE, a list with two entries is returned. The first entry is the estimated covariance matrix. The second entry is the estimation specific (tuning) parameter. Default value is FALSE.

...

additional parameters, parsed to est_func

Value

a list with the following entries

  • a pxp estimated covariance matrix.

  • an estimation specific (tuning) parameter.

Examples

data(rets_m)
sigma_ml <- cov_estim_wrapper(rets_m, est_func = cov_estim_ml)[[1]]


antshi/CovEstim documentation built on June 10, 2025, 3:11 a.m.