Skip to content

Selections and loops

In the app: Help → Help contents, Selections and loops.

A selection is an ordered set of series names: listed, chosen by pattern (*_cycle) or by metadata (units, adjustment), like column selectors in R, polars and Julia. Loops over a selection replace EViews' for %s loops: the dialogs (Derived series for each selected, Equation for each selected series, Test each selected series) and the selection methods (formulas, fit, test, map) use templates with {s} for the series name, and return results side by side. In Python, for name in selection: works as for any list, f-strings replace %s substitution, and ordinary variables replace !i scalars. Everything run in the Immediate or Code window is recorded, loops included.

See also