Skip to main content

explore.unit_root()

ADF, DFGLS, Phillips-Perron and KPSS (arch) on x, around a constant or a trend.

Usage

Source

explore.unit_root(
    x,
    *,
    trend="c",
    lags=None,
    method="aic",
    alpha=0.05,
)

lags fixes the lags of ADF and DFGLS and the bandwidth of PP and KPSS; unset, ADF and DFGLS choose by method and PP and KPSS take arch’s default bandwidth. The lags used are recorded. A unit-root test says stationary when its p-value is below alpha; KPSS when its p-value is at least alpha.