Hi,
Is there any function to create lag and first, second, ... difference variables in Jamovi?
Thanks.
Creating lag and differen variables
Re: Creating lag and differen variables
does the OFFSET() function do what you need?
Re: Creating lag and differen variables
Yes. This is what I need. But Lag, Lead, diff are more used verbs in econometrics.
Lag -> OFFSET(A, 1)
Lead -> OFFSET(A, -1)
diff_1 -> A - OFFSET(A, 1)
diff_2 -> A - OFFSET(A, 2)
Lag -> OFFSET(A, 1)
Lead -> OFFSET(A, -1)
diff_1 -> A - OFFSET(A, 1)
diff_2 -> A - OFFSET(A, 2)
Re: Creating lag and differen variables
great. so you're sorted then?
jonathon
jonathon