| lmc_ged | R Documentation |
Performs a Local Monte Carlo (LMC) test of the null hypothesis
H_0: \nu = \nu_0 for the shape parameter in an SV(p) model
with GED errors. Testing \nu_0 = 2 corresponds to testing normality.
lmc_ged(
y,
p = 1,
J = 10,
N = 99,
nu_null,
burnin = 500,
del = 1e-10,
wDecay = FALSE,
Bartlett = FALSE,
Amat = NULL,
direction = c("two-sided", "less", "greater"),
sigvMethod = "factored",
winsorize_eps = 0
)
y |
Numeric vector. Observed returns. |
p |
Integer. AR order of the volatility process. Default 1. |
J |
Integer. Winsorizing parameter. Default 10. |
N |
Integer. Number of Monte Carlo replications. Default 99. |
nu_null |
Numeric. Value of |
burnin |
Integer. Burn-in for simulation. Default 500. |
del |
Numeric. Small constant for log transformation. Default |
wDecay |
Logical. Use decaying weights. Default |
Bartlett |
Logical. Use Bartlett kernel HAC for weighting matrix.
Default |
Amat |
Weighting matrix specification. |
direction |
Character. Test direction: |
sigvMethod |
Character. Method for |
winsorize_eps |
Numeric. Winsorization threshold for moment conditions. Default 0 (no winsorization). |
An object of class "svp_test".
y <- sim_svp(1000, phi = 0.95, sigy = 1, sigv = 0.2, errorType = "GED", nu = 1.5)$y
test <- lmc_ged(y, p = 1, J = 10, N = 49, nu_null = 2)
print(test)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.