mesmer.stats._fit_auto_regression_scen_ens#
- mesmer.stats._fit_auto_regression_scen_ens(*objs, dim, ens_dim, lags)#
fit an auto regression and potentially calculate the mean over ensemble members and scenarios
- Parameters:
*objs (iterable of DataArray) – A list of
xr.DataArray
to estimate the auto regression over.dim (str) – Dimension along which to fit the auto regression.
ens_dim (str) – Dimension name of the ensemble members.
lags (int) – The number of lags to include in the model.
- Returns:
xr.Dataset
– Dataset containing the estimated parameters of theintercept
, the ARcoeffs
and thevariance
of the residuals.
Notes
Calculates the mean auto regression, first over the ensemble members, then over all scenarios.