View source: R/SADF.bootstrap.test.R
SADF.bootstrap.test | R Documentation |
SADF.bootstrap.test
is a wild bootstrapping procedure for estimating
critical and p
-values for SADF.test.
GSADF.bootstrap.test
is the same procedure but for GSADF.test.
SADF.bootstrap.test(
y,
trim = 0.01 + 1.8/sqrt(length(y)),
const = TRUE,
alpha = 0.05,
iter = 999,
seed = round(10^4 * sd(y))
)
GSADF.bootstrap.test(
y,
trim = 0.01 + 1.8/sqrt(length(y)),
const = TRUE,
alpha = 0.05,
iter = 4 * 200,
seed = round(10^4 * sd(y))
)
y |
A time series of interest. |
trim |
A trimming parameter to determine the lower and upper bounds for a possible break point. |
const |
Whether the constant needs to be included. |
alpha |
The significance level of interest. |
iter |
The number of iterations. |
seed |
The seed parameter for the random number generator. |
Refactored original code by Kurozumi et al.
An object of type sadf
. It's a list of:
y
,
trim
,
const
,
alpha
,
iter
,
seed
,
vector of t
-values,
the value of the corresponding test statistic,
series of bootstrapped test statistics,
bootstrapped critical values,
p
-value.
Kurozumi, Eiji, Anton Skrobotov, and Alexey Tsarev. “Time-Transformed Test for Bubbles under Non-Stationary Volatility.” Journal of Financial Econometrics, April 23, 2022. https://doi.org/10.1093/jjfinec/nbac004.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.