Augmented Dickey Fuller Test 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.3
C#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
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
Argument | sample is null. |
Insufficient | The number of samples in sample is insufficient to compute the regression of the specified time series model. |