Time Series Functions.Augmented Dickey Fuller Test Method
Returns a new Augmented Dickey-Fuller test object for the presence
of a unit root.
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 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
AugmentedDickeyFullerTestRemarks
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. |