Augmented Dickey Fuller Test Constructor
Constructs a new Augmented Dickey-Fuller test object.
Definition
Namespace: Extreme.Statistics.TimeSeriesAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
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. |
Insufficient | The number of samples in sample is insufficient to compute the regression of the specified time series model. |