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
Re: Creating lag and differen variables
Yes. I got the desired results. But please include these functions lag, lead, diff too in future versions. Followup question, is there any possibility that any one create a time series module based on fpp2 or fpp3?
Re: Creating lag and differen variables
it would certainly be possible if someone had the time and motivation.
a wrinkle is that jamovi doesn't currently support datetime data types.
jonathon
a wrinkle is that jamovi doesn't currently support datetime data types.
jonathon