Volatility-robust (other routes)
Monte Carlo Critical Values for the Recursively Demeaned Sign-Based Test
radf_sign_dm_cv
Replication record →
radf_sign_dm_cv(n, minw = NULL, nrep = 2000L, seed = NULL) Simulates the asymptotic null distribution of the statistic of radf_sign_dm. As for radf_sign_cv, this distribution does not depend on the volatility process (exact invariance, the analogue for this variant of Theorem 2 of HLZ 2020), so it does not have to be recomputed for each dataset.
Arguments
| n | A positive integer. The sample size. |
| minw | A positive integer. The minimum window size (default = , where T denotes the sample size). |
| nrep | A positive integer. The number of Monte Carlo simulations. |
| seed | An object specifying if and how the random number generator (rng)
should be initialized. It is either NULL or an integer, which is passed to
set.seed before the simulation. If you set it, the value is saved as the
"seed" attribute of the returned value. The default, NULL, leaves the state of
the rng unchanged and returns .Random.seed as the "seed" attribute. Results are
reproducible across the parallel and the non-parallel option when you use the
same seed. |
Value
An object of class radf_cv/sign_dm_cv/mc_cv with the same structure as radf_mc_cv.
Status
[Experimental]
Examples
These examples are copied from the package's own documentation and are run by R CMD check on every release.
The printed output (after #>) and the plots were produced by running them against the current package source.
cv <- radf_sign_dm_cv(n = 200, minw = 20)
tidy(cv)
#> # A tibble: 3 × 4
#> sig adf sadf gsadf
#> <fct> <dbl> <dbl> <dbl>
#> 1 90 0.831 2.41 3.29
#> 2 95 1.25 2.80 3.67
#> 3 99 2.01 3.51 4.77 See also
Other critical values: radf_common_cv(), radf_mc_cv(), radf_recovery_cv(), radf_sb_cv(), radf_sbz_cv(), radf_sign_cv(), radf_tt_cv(), radf_wb_cv(), radf_wb_ps_cv()
References
Harvey, D. I., Leybourne, S. J., & Zu, Y. (2020). Sign-based unit root tests for explosive financial bubbles in the presence of deterministically time-varying volatility. Econometric Theory, 36(1), 122-169.
exuber