View source: R/utilities_other.R
expweightcov | R Documentation |
A common way to get estimates for time-varying covariance matrices is the compute the exponentially weighted empirical covariance matrix.
expweightcov(dat, alpha = 4/126, hist = 180)
dat |
Matrix containing the data, with |
alpha |
Speed of decay. |
hist |
How far to go back in time? |
A m
times m
covariance matrix estimate.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.