wkss#

Purpose#

Computes the WKSS unit root test.

Format#

{ wkss_t, p } = wkss(y, model[, pmax, ic])#
Parameters:
  • y (Nx1 matrix) – Time series data to be tested.

  • model (Scalar) –

    Model to be implemented.

    0

    Zero mean & no trend

    1

    Constant included.

    2

    Constant and trend.

  • pmax (Scalar) – Optional, the maximum number of lags for \(\Delta y\). Default = 8.

  • ic (Scalar) –

    Optional, the information criterion used for choosing lags. Default = 3.

    1

    Akaike.

    2

    Schwarz.

    3

    t-stat significance.

Returns:
  • wkss_t (Scalar) – wKSS tau-statistic

  • p (Scalar) – Chosen number of lags.

Examples#

library tspdlib;

// Load date file
y = loadd(getGAUSSHome() $+ "pkgs/tspdlib/examples/TSe.dat");

// Run model with constant
model = 1;

// Run test
stat = wkss(y, model);

Source#

wkss.src

See also

Functions adf(), kss() qr_fourier_kss()