View source: R/svp_information_criteria.R
| svp_AR_order | R Documentation |
Convenience wrapper around svp_IC: fits svp
at each p = 1, ..., pmax and returns a matrix of information
criteria along with the argmin per criterion.
svp_AR_order(
y,
pmax = 6L,
J = 10L,
leverage = FALSE,
errorType = "Gaussian",
rho_type = "pearson",
del = 1e-10,
trunc_lev = TRUE,
wDecay = FALSE,
logNu = FALSE,
sigvMethod = "factored",
winsorize_eps = 0L,
filter_method = "mixture",
proxy = c("bayes_optimal", "u"),
K = 7L,
M = 1000L,
seed = 42L,
criteria = c("BIC_Kalman", "AIC_Kalman", "BIC_HR", "AIC_HR")
)
y |
Numeric vector. Observed returns. |
pmax |
Integer. Maximum AR order to consider. Default 6. |
J |
Integer. Winsorizing parameter passed to |
leverage |
Logical. Whether to estimate leverage. Default
|
errorType |
Character. |
rho_type, del, trunc_lev, wDecay, logNu, sigvMethod, winsorize_eps |
Other
arguments passed to |
filter_method |
Character. Filter method for |
proxy |
Character. Leverage proxy. Default |
K, M, seed |
Filter arguments passed to |
criteria |
Character vector of criteria to compute. Default
returns the four recommended criteria: |
A list with components:
Numeric matrix, one row per criterion, one column per
candidate p in 1:pmax.
Named integer vector, one entry per criterion, giving the
selected p. NA_integer_ if all entries for that
criterion are NA.
List of length pmax containing the fitted
svp() objects (or NULL if a fit failed).
svp_IC, svp, filter_svp
set.seed(1)
y <- sim_svp(2000, phi = 0.95, sigy = 1, sigv = 0.5)$y
res <- svp_AR_order(y, pmax = 4)
res$IC
res$argmin
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.