| mmc_t | R Documentation |
Performs a Maximized Monte Carlo (MMC) test of H_0: \nu = \nu_0
by maximizing the MC p-value over nuisance parameters (phi, sigma_y, sigma_v).
mmc_t(
y,
p = 1,
J = 10,
N = 99,
nu_null,
burnin = 500,
eps = NULL,
threshold = 1,
method = "pso",
maxit = NULL,
del = 1e-10,
wDecay = FALSE,
Bartlett = FALSE,
Amat = NULL,
logNu = TRUE,
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. |
eps |
Numeric vector. Half-width of search region around estimated nuisance
parameters. Must have length |
threshold |
Numeric. Target p-value. Default 1. |
method |
Character. Optimization method: |
maxit |
Integer. Maximum iterations/evaluations. Default depends on method. |
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. |
logNu |
Logical. Use log-space for nu estimation. Default |
direction |
Character. Test direction: |
sigvMethod |
Character. Method for |
winsorize_eps |
Numeric. Winsorization threshold for moment conditions. Default 0 (no winsorization). |
A list with optimization output including value (maximized p-value)
and par (nuisance parameters at the maximum).
y <- sim_svp(1000, phi = 0.95, sigy = 1, sigv = 0.2, errorType = "Student-t", nu = 5)$y
mmc <- mmc_t(y, p = 1, J = 10, N = 19, nu_null = 5, method = "pso", maxit = 10)
mmc$value
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.