fourier_kss_bootstrap#
Purpose#
Computes the KSS unit root test with flexible Fourier form structural breaks.
Format#
- { test_boot, cv_boot } = Fourier_kss_bootstrap(y, model, test[, pmax, fmax, ic])#
- Parameters:
y (Nx1 matrix) – Dependent variable.
model (Scalar) –
Model to be implemented.
1
Constant
2
Constant and trend
test (String) – Test to be conducted. Options are “FADF” or “FKSS”.
pmax (Scalar) – Optional, maximum number of lags for \(\Delta y\); 0=no lag. Default = 8.
fmax (Scalar) – Optional, maximum number of single Fourier frequency (upper bound is 5). Default = 5.
ic (Scalar) –
Optional, the information criterion used for choosing lags. Default = 3.
1
Akaike.
2
Schwarz.
3
t-stat significance.
Nboot – Optional, number of bootstrap iterations. Default = 1000.
- Returns:
test_boot (Scalar) – Bootstrapped test statistic.
cv_boot (Scalar) – Bootstrapped 1%, 5%, and 10% critical values.
f (Scalar) – Chosen number of single frequency.
Examples#
library tspdlib;
// Load date file
y = loadd(getGAUSSHome() $+ "pkgs/tspdlib/examples/ts_examples.csv",
"Y + date($Date, '%b-%y')");
// With constant
model = 1;
// Call test
{ test_boot, cv_boot } = Fourier_KSS_bootstrap(y, model);
Source#
fourier_kss.src
See also
Functions fourier_kss()
, fourier_adf()
, fourier_gls()
, fourier_kpss()
, fourier_lm()