Hallo there, I need help pls. I want to calculate a Lag 2 analysis in which I want to look at a specific sequence. I know that with a Lag 2 calculation, it is not possible to specify which event lies in between, e.g. behaviour A → behaviour X unknown → behaviour C. To get around this, I thought I could examine two Lag 1s, such as behaviour A → behaviour B and behaviour B → behaviour C, and calculate whether these appear in my data set. However, my current R code only calculates the sum of behaviour A → behaviour B and behaviour B → behaviour C, and not the actual joint occurrence of both sequences. Does anyone have any ideas for the calculation code?
Thx