mesmer.stats.select_ar_order_scen_ens#
- mesmer.stats.select_ar_order_scen_ens(*objs, dim, ens_dim, maxlag, ic='bic')#
Select the order of an autoregressive process and potentially calculate the median over ensemble members and scenarios
- Parameters:
*objs (DataTree, xr.DataArrays or dict of DataArrays) – A DataTree,
xr.DataArray``s or dict of ``xr.DataArrayto estimate the auto regression order over.dim (str) – Dimension along which to determine the order.
ens_dim (str) – Dimension name of the ensemble members.
maxlag (int) – The maximum lag to consider.
ic ({‘aic’, ‘hqic’, ‘bic’}, default ‘bic’) – The information criterion to use in the selection.
- Returns:
selected_ar_order (DataArray) – Array indicating the selected order with the same size as the input but
dimremoved.
Notes
Calculates the median auto regression order, first over the ensemble members, then over all scenarios.