Hello:
I am a new user and I am wondering if there a way in Stata to create a lagged variable that covers a range of time?
I have a dataset of daily observations of violence between two countries across a disputed border. What I’m interested in looking at is whether there is any relationship between the local patterns of violence and international political events. So, for example, do we see a spike in violence +/ -5 days around a meeting of the UN General assembly or the arrival of an international delegation to the disputed region, etc.?
I understand how to make “point“ leading and lag variables (-1 day, -2 days, -3 days) but I’m less interested in knowing if we see peaks of violence specifically three days after such a meeting than if we see them at any time in five days before or after.
I know that this can be coded using “brute force” manual methods, but I am hoping there is some kind of way to do it via the software.
Thank you in advance!
Related Posts with Lagged variable that covers a range of time?
"No observations" problemHello, I have a problem when generating new variables out of existing one. I have a variable "pclas…
Cross section Panel data for exam - elections across 23 countriesHi all. I appear to be in deep, so hoping anyone can help. Im doing an exam in quantative methods. …
Putexcel with row and column name labelsI am trying to export tables from stata to word using putexcel, where the row and column variables h…
analyzes of companies accountsI am trying to make an analysis of all danish companies accounting for some years. Do any one have m…
Assigning Values of Variable for All PanelsHi all, I have tried finding a post already discussing this issue but have not found any; apologies…
Subscribe to:
Post Comments (Atom)
0 Response to Lagged variable that covers a range of time?
Post a Comment