| mmc_ar | R Documentation |
Performs a Maximized Monte Carlo (MMC) test of
H_0: \phi_{p_0+1} = \cdots = \phi_p = 0
by maximizing the MC p-value over nuisance parameters
(\phi_1, \ldots, \phi_{p_0}, \sigma_y, \sigma_v).
mmc_ar(
y,
p_null,
p_alt,
J = 10,
N = 99,
burnin = 500,
eps = NULL,
threshold = 1,
method = "pso",
maxit = NULL,
del = 1e-10,
wDecay = FALSE,
Bartlett = FALSE,
Amat = NULL,
errorType = "Gaussian",
sigvMethod = "factored",
logNu = TRUE,
winsorize_eps = 0
)
y |
Numeric vector. Observed returns. |
p_null |
Integer. Order under the null hypothesis. |
p_alt |
Integer. Order under the alternative ( |
J |
Integer. Winsorizing parameter. Default 10. |
N |
Integer. Number of Monte Carlo replications. Default 99. |
burnin |
Integer. Burn-in for simulation. Default 500. |
eps |
Numeric vector. Half-width of search region around estimated
nuisance parameters. Default |
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. If |
Amat |
Weighting matrix specification. |
errorType |
Character. Error distribution of the return innovations:
|
sigvMethod |
Character. Method for |
logNu |
Logical. Use log-space for |
winsorize_eps |
Number of extreme autocovariance lags to winsorize (heavy-tail only). Default 0. |
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)$y
mmc <- mmc_ar(y, p_null = 1, p_alt = 2, 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.