mesmer.stats.auto_regression._fit_auto_regression_xr#
- mesmer.stats.auto_regression._fit_auto_regression_xr(data, dim, lags)#
fit an auto regression - xarray wrapper
- Parameters:
data (xr.DataArray) – A
xr.DataArray
to estimate the auto regression over.dim (str) – Dimension along which to fit the auto regression over.
lags (int) – The number of lags to include in the model.
- Returns:
xr.Dataset
– Dataset containing the estimated parameters of theintercept
, the ARcoeffs
and thestandard_deviation
of the residuals.