| mmc_lev | R Documentation |
Performs a Maximized Monte Carlo (MMC) test of the null hypothesis
H_0: \rho = \rho_0 by maximizing the MC p-value over nuisance
parameters (phi, sigma_y, sigma_v).
mmc_lev(
y,
p = 1,
J = 10,
N = 99,
rho_null = 0,
burnin = 500,
eps = NULL,
threshold = 1,
method = "pso",
maxit = NULL,
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. |
eps |
Numeric vector. Half-width of the search region around the
estimated nuisance parameters. For Gaussian: length |
threshold |
Numeric. Target p-value (optimization stops if reached). Default 1. |
method |
Character. Optimization method: |
maxit |
Integer or list. Maximum iterations/evaluations for the optimizer. Default depends on method. |
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. |
A list with the optimization output including:
Maximized p-value.
Nuisance parameter values at the maximum.
Additional fields depend on the optimization method used.
y <- sim_svp(1000, phi = 0.95, sigy = 1, sigv = 0.2, leverage = TRUE, rho = -0.3)$y
mmc <- mmc_lev(y, p = 1, J = 10, N = 19, method = "pso", maxit = 10)
mmc$value
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.