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?
Do Statacorp's lasso/elasticnet commands automatically normalize independent variables?It is generally advisable to normalize (or standardize, or rescale) independent variables before run…
How to pairwise t-test slopes of a three-way interaction?Hi, I hope you had a merry Christmas. Currently I face difficulties on how to pairwise t-test a th…
insufficient observationsHi Everybody, Someone can help me ? I have run the regression as a fixed effects model xtreg GDP In…
How to randomly select control sample for the treatment sample multiple times and run regressions?Dear all, I am using Stata 14.0 to solve the questions about randomly selecting control sample for t…
Differences in differences with matchingHi, I'm working with a survey data which covers 5 rounds (1995, 2000, 2005 , 2010 and 2015). Howeve…
Subscribe to:
Post Comments (Atom)
0 Response to Lagged variable that covers a range of time?
Post a Comment