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)