mesmer.stats.fit_auto_regression#
- mesmer.stats.fit_auto_regression(data, dim, *, lags)#
fit an auto regression
- Parameters:
data (xr.DataArray) – A
xr.DataArrayto estimate the auto regression over.dim (str) – Dimension along which to fit the auto regression.
lags (int | Sequence[int]) – The number of lags or list of lags to include in the model. If int, then all lags up to
lagswill be included.
- Returns:
xr.Dataset– Dataset containing the estimated parameters of theintercept, the ARcoeffs, thevarianceof the residuals and the number of observationsnobs.