Helper functions for estimating the mean and/or covariance matrix of a time series of assets by traditional and robust methods.
.baggedMeanCov(x, baggedR = 100, ...)
.bayesSteinMeanCov(x, ...)
.cov.arw(x, center, cov, alpha = 0.025, pcrit = NULL)
.cov.nnve(datamat, k = 12, pnoise = 0.05, emconv = 0.001, bound = 1.5,
extension = TRUE, devsm = 0.01)
.cov.shrink(x, lambda, verbose = FALSE)
.donostahMeanCov(x, ...)
.ledoitWolfMeanCov(x, ...)
.rmtMeanCov(x, ...)
.studentMeanCov(x, ...)
The functions return a list with elements containing the covariance and mean. The list may contain additional control parameters.
any rectangular time series object which can be converted by the
function as.matrix()
into a matrix object, e.g. like an
object of class timeSeries
, data.frame
, or mts
.
when methode="bagged"
, an integer value, the number of
bootstrap replicates, by default 100.
specifies for a data set (n x p), the initial location estimator(1 x p).
Initial scatter estimator (p x p).
Maximum thresholding proportion (optional scalar, default:
alpha = 0.025
).
critical value for outlier probability (optional scalar, default values from simulations).
a matrix in which each row represents an observation or point and each column represents a variable.
desired number of nearest neighbors (default is 12).
percent of added noise
convergence tolerance for EM.
value used to identify surges in variance caused by outliers wrongly included as signal points (bound = 1.5 means a 50 percent increase).
whether or not to continue after reaching the last chi-square
distance. The default is to continue, which is indicated by
setting extension= TRUE
.
when extension = TRUE
, the algorithm stops if the
relative difference in variance is less than devsm (default is
0.01).
the correlation shrinkage intensity (range 0-1). If lambda is
not specified (the default) it is estimated using an analytic
formula from Schaefer and Strimmer (2005) - see details
below. For lambda=0
the empirical correlations are
recovered.
a logical indicating whether to print progress information to the stdout.
optional arguments to be passed to the underlying estimators.
For details we refer to the manual pages of the functions
cov.rob
in the R package MASS
, to the functions
covMcd
and covOGK
in the R package
robustbase
.