Dear community,
I have to do an empirical assignment and I am stuck at one exercise.
My dataset contains the election years 2004,2008,2012,2016 and 2020. In my exercise I am asked to create a lag for one variable. Chat GPT is not clear whether I need to create a lag using L1 or L4. Since I don't have consecutive years but in steps of 4, I am not sure whether Stata captures this when using L1. For example, in year 2020, if I use L1 does it capture the year 2019 (although that is not included in my dataset) or does that capture the previous period in my dataset (i.e. 2016)?
I hope it was possible to understand my point.
Thank you very much in advance!
I have to do an empirical assignment and I am stuck at one exercise.
My dataset contains the election years 2004,2008,2012,2016 and 2020. In my exercise I am asked to create a lag for one variable. Chat GPT is not clear whether I need to create a lag using L1 or L4. Since I don't have consecutive years but in steps of 4, I am not sure whether Stata captures this when using L1. For example, in year 2020, if I use L1 does it capture the year 2019 (although that is not included in my dataset) or does that capture the previous period in my dataset (i.e. 2016)?
I hope it was possible to understand my point.
Thank you very much in advance!
Comment