KpssTest Constructor

Definition

Namespace: Numerics.NET.Statistics.TimeSeriesAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.7.0

Overload List

KpssTest(Vector<Double>) Initializes a new KPSS test for level stationarity using the short lag-selection rule.
KpssTest(Vector<Double>, KpssTestType, KpssLagSelection) Initializes a new KPSS test using the specified stationarity type and lag-selection rule.
KpssTest(Vector<Double>, KpssTestType, Int32) Initializes a new KPSS test using an explicit fixed lag count.

KpssTest(Vector<Double>)

Initializes a new KPSS test for level stationarity using the short lag-selection rule.
C#
public KpssTest(
	Vector<double> series
)

Parameters

series  Vector<Double>
The time series to test for stationarity.

Exceptions

ArgumentNullException

series is null.

ArgumentException

series contains a non-finite observation.

InsufficientDataException

The length of series is less than 4.

KpssTest(Vector<Double>, KpssTestType, KpssLagSelection)

Initializes a new KPSS test using the specified stationarity type and lag-selection rule.
C#
public KpssTest(
	Vector<double> series,
	KpssTestType type,
	KpssLagSelection lagSelection = KpssLagSelection.Short
)

Parameters

series  Vector<Double>
The time series to test for stationarity.
type  KpssTestType
The deterministic component in the stationarity null hypothesis.
lagSelection  KpssLagSelection  (Optional)
The rule used to select the number of lags in the long-run variance estimate.

Exceptions

ArgumentNullException

series is null.

ArgumentException

series contains a non-finite observation, or lagSelection is Fixed.

ArgumentOutOfRangeException

type or lagSelection is invalid.

InsufficientDataException

The length of series is insufficient for the selected test type.

KpssTest(Vector<Double>, KpssTestType, Int32)

Initializes a new KPSS test using an explicit fixed lag count.
C#
public KpssTest(
	Vector<double> series,
	KpssTestType type,
	int lagCount
)

Parameters

series  Vector<Double>
The time series to test for stationarity.
type  KpssTestType
The deterministic component in the stationarity null hypothesis.
lagCount  Int32
The number of lags in the long-run variance estimate.

Exceptions

ArgumentNullException

series is null.

ArgumentException

series contains a non-finite observation.

ArgumentOutOfRangeException

type is invalid, lagCount is negative, or lagCount is greater than or equal to the length of series.

InsufficientDataException

The length of series is insufficient for the selected test type.

See Also