Packages

class KPSS_Stationarity extends UnitRoot

The KPSS class provides capabilities of performing KPSS test to determine if a time series is stationary around a deterministic trend. This code is translated from the C++ code found in

See also

github.com/olmallet81/URT.

Linear Supertypes
UnitRoot, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. KPSS_Stationarity
  2. UnitRoot
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new KPSS_Stationarity(data_: VectoD, lagsType_: String, trend_: String)

    Alternative constructor that only provides the type of lags.

    Alternative constructor that only provides the type of lags.

    data_

    the time series vector

    lagsType_

    type of lags, long or short

    trend_

    type of trend to test for

  2. new KPSS_Stationarity(data_: VectoD, lags_: Int, trend_: String)

    Alternative constructor that only provides the number of lags.

    Alternative constructor that only provides the number of lags.

    data_

    the time series vector

    lags_

    the number of lags to use

    trend_

    type of trend to test for

  3. new KPSS_Stationarity(data_: VectoD, lags_: Int, lagsType_: String, trend_: String = "c")

    data_

    the time series vector

    lags_

    the number of lags to use

    lagsType_

    type of lags, long or short

    trend_

    type of trend to test for

Value Members

  1. def canReject(alpha: Double = 0.05): Boolean

    Check to see if H0 can be rejected.

    Check to see if H0 can be rejected. Must call pvalue first to compute pval.

  2. def computeStat(): Unit

    Computes test statistics.

  3. def getPval(): Double

    Get test pvalue.

    Get test pvalue.

    Definition Classes
    UnitRoot
  4. def getStat(): Double

    Get test statistic.

    Get test statistic.

    Definition Classes
    UnitRoot
  5. def getTrends(): VectorS

    Get test valid trends.

    Get test valid trends.

    Definition Classes
    UnitRoot
  6. var lags: Int
    Definition Classes
    UnitRoot
  7. def pvalue(): Double

    Compute test statistic p-value.

    Compute test statistic p-value.

    Definition Classes
    KPSS_StationarityUnitRoot
  8. def show(): Unit

    Output test results.

    Output test results.

    Definition Classes
    KPSS_StationarityUnitRoot
  9. def statistic(): Double

    Compute KPSS test statistic.

    Compute KPSS test statistic.

    Definition Classes
    KPSS_StationarityUnitRoot
  10. var trend: String
    Definition Classes
    UnitRoot