| lmc_lev | R Documentation |
Performs a Local Monte Carlo (LMC) test of the null hypothesis
H_0: \rho = \rho_0 (typically \rho_0 = 0, i.e., no leverage)
using a GMM likelihood-ratio type statistic.
lmc_lev(
y,
p = 1,
J = 10,
N = 99,
rho_null = 0,
burnin = 500,
rho_type = "pearson",
del = 1e-10,
trunc_lev = TRUE,
wDecay = FALSE,
Bartlett = FALSE,
Amat = NULL,
errorType = "Gaussian",
logNu = FALSE,
sigvMethod = "factored",
winsorize_eps = 0
)
y |
Numeric vector. Observed returns. |
p |
Integer. Order of the volatility process. Default 1. |
J |
Integer. Winsorizing parameter. Default 10. |
N |
Integer. Number of Monte Carlo replications. Default 99. |
rho_null |
Numeric. Value of |
burnin |
Integer. Burn-in for simulation. Default 500. |
rho_type |
Character. Correlation type. Default |
del |
Numeric. Small constant for log transformation. Default |
trunc_lev |
Logical. Truncate leverage correlation estimate to
|
wDecay |
Logical. Use decaying weights. Default |
Bartlett |
Logical. If |
Amat |
Weighting matrix specification. |
errorType |
Character. Error distribution: |
logNu |
Logical. Use log-space for nu estimation (Student-t only).
Default |
sigvMethod |
Method for sigma_v estimation: |
winsorize_eps |
Number of extreme autocovariance lags to winsorize (0 = none). Default 0. |
An object of class "svp_test", a list containing:
Test statistic from observed data.
Simulated null distribution (vector of length N).
Monte Carlo p-value.
Character string identifying the test.
Name of the parameter tested.
Value under the null hypothesis.
The matched call.
y <- sim_svp(1000, phi = 0.95, sigy = 1, sigv = 0.2, leverage = TRUE, rho = -0.3)$y
test <- lmc_lev(y, p = 1, J = 10, N = 99)
print(test)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.