Demo project: calculate time lags

Hi,
I have created a demo project for calculating time lags of variables.
It can be used to shift the data up or down from a time perspective. If we have to calculate a lot of lags (e.g. 15 time lags) it would mean 15 actions in EasyMorph. With this module the lags are calculated iteratively.

The user should provide the following parameters in the call to the shift_data module:

  • column_to_be_shifted = the column from the other dataset to be shifted.
  • max_shift_number = The max number of time shifts to be calculated.
  • shift_direction = should the shift direction be up or down.

The module is not yet perfect in the sense that after the lags are calculated, the post processing depends on the dataset that is used.

@dgudkov: Maybe you could have a quick look at this and give some suggestions to improve it?

Project in attachment.

demo_calculate_time_lags.morph (14.7 KB)

Here is my variant. It’s quite different and is also generic, i.e. it doesn’t depend on column names in the source dataset and the number of shifts.

demo_calculate_time_lags.morph (15.0 KB)

Hi Dmitry,

Thanks ! Currently we run EasyMorph with the version below.
Could you post the project that can run in that version? If too much work, I shall see if we can upgrade soon to ne newest version of EasyMorph.

image

Can’t remake it in an older version, alas.

ok no problem. We shall upgrade !