RainbowStats™ · Series commands

LAG

Apply the existing observation lag.

Syntax

LAG(seriesOrList)
LAG(seriesOrList,lag)

Example or template

LAG(INDPRO,12)

Details

The one-argument form uses lag 1. Explicit lag uses the existing literal-number parser. Date shifts, output length and missing-value conventions belong to getLag.

Uppercase placeholder names such as SOURCE or OUTCOME_LIST refer to variables you supply. Result-specific EXTRACT keys have not been inventoried for these commands.

Learn more

Detailed guide and examples