pub fn adf_test<F, S>(
ts: &ArrayBase<S, Ix1>,
max_lags: Option<usize>,
regression_type: &str,
) -> Result<StationarityTest<F>>Expand description
Augmented Dickey-Fuller test for stationarity
Tests the null hypothesis that a unit root is present in the time series. H0: The series has a unit root (non-stationary) H1: The series is stationary
§Arguments
ts- Input time seriesmax_lags- Maximum number of lags to include (auto-selected if None)regression_type- Type of regression (‘c’ = constant, ‘ct’ = constant and trend, ‘nc’ = no constant)
§Returns
Stationarity test results