TimeSeriesFunctions.AugmentedDickeyFullerTest Method

Returns a new Augmented Dickey-Fuller test object for the presence of a unit root.

Definition

Namespace: Extreme.Statistics.TimeSeriesAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static AugmentedDickeyFullerTest AugmentedDickeyFullerTest(
	Vector<double> sample,
	int order = -1,
	DickeyFullerTestType type = DickeyFullerTestType.ConstandAndTrend
)

Parameters

sample  Vector<Double>
The sample to test for a unit root.
order  Int32  (Optional)
Optional. The number of lag terms to include in the regression model. If less than zero, the number of lags is calculated from the size of sample.
type  DickeyFullerTestType  (Optional)
Optional. A DickeyFullerTestType value that specifies whether the constant term (drift) and trend should be accounted for. The default is for drift and trend to be included.

Return Value

AugmentedDickeyFullerTest

Remarks

When order is zero, the test reduces to the original Dickey-Fuller test.

Exceptions

ArgumentNullException

sample is null.

InsufficientDataException

The number of samples in sample is insufficient to compute the regression of the specified time series model.

See Also