| .add_leverage | R Documentation |
Add leverage estimation to a fitted SV(p) model (post-processing) Works for all error distributions: Gaussian, Student-t, GED. - Gaussian: closed form (C_F = 1) - Student-t: closed form with C_t(nu) correction - GED: exact 1D root-finding via uniroot + Gauss-Hermite quadrature
.add_leverage(out, y, p, rho_type, del, trunc_lev, wDecay, errorType)
out |
Model object from .svp_gaussian/.svp_t/.svp_ged (without leverage) |
y |
Numeric vector of observations |
p |
AR order |
rho_type |
"pearson", "kendall", or "both" |
del |
Small constant for log transform |
trunc_lev |
Logical: truncate rho to [-0.999, 0.999] |
wDecay |
Logical: decaying weights (passed from original estimation) |
errorType |
"Gaussian", "Student-t", or "GED" |
Updated model object with leverage fields added
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.