# diff() operator extension for quarterly data

The current diff() operator implementation only allows to get diff('variable') = variable(t) - variable(t-1).

Some equations in our model use Year over Year differences in quarterly time series variables.

We would like a diff() operator extension allowing us to write such a difference, for example this way:

diff('variable', X) = variable(t) - variable(t-X) where X is an integer representing the lag over which we want to get the variable differentiated (our use case would have X = 4). It might be an optional argument and/or default to 1 in order to preserve its current functioning.