Multivariate / panel bubble tests
Critical Values for the Common-Bubble (PCA + PSY) Test
radf_common_cv
Replication record →
radf_common_cv(n, N, minw = NULL, nrep = 1000L, seed = NULL) radf_common_cv simulates critical values for radf_common under its own null of no common explosive factor. The null is a panel of N independent random walks, from which one principal component is extracted and tested exactly as in radf_common. Independent validation showed that radf_mc_cv, whose critical values do not depend on the panel width, is badly undersized as a stand-in for this null once N grows past a handful of series. The null distribution here does depend on N, so N must match the panel on which radf_common was run.
Arguments
| n | A positive integer. The sample size (number of time periods). |
| N | A positive integer, at least 2. The panel width (number of series) on
which radf_common will be run. The critical value depends on it,
unlike that of radf_mc_cv. |
| 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
A list with adf_cv, sadf_cv, gsadf_cv, badf_cv and bsadf_cv. It has the same shape as the return value of radf_mc_cv, so you can use it as the cv argument of datestamp, tidy and autoplot on a radf_common result.
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_common_cv(n = 100, N = 5, minw = 20, nrep = 200)
tidy(cv)
#> # A tibble: 3 × 4
#> sig adf sadf gsadf
#> <fct> <dbl> <dbl> <dbl>
#> 1 90 0.383 1.94 2.33
#> 2 95 0.621 2.30 2.53
#> 3 99 1.27 2.95 3.11 See also
Other critical values: radf_mc_cv(), radf_recovery_cv(), radf_sb_cv(), radf_sbz_cv(), radf_sign_cv(), radf_sign_dm_cv(), radf_tt_cv(), radf_wb_cv(), radf_wb_ps_cv()
References
Chen, Y., Phillips, P. C. B., & Shi, S. (2023). Common Bubble Detection in Large Dimensional Financial Systems. Journal of Financial Econometrics, 21(4), 989-1063.
exuber