AugmentedDickeyFullerTest Constructor

Constructs a new Augmented Dickey-Fuller test object.

Definition

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

Parameters

sample  Vector<Double>
The sample to test for a unit root.
order  Int32
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.

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