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?
Chamberlain Moment Conditions and endogenous X in dynamic Poisson modelHello good people, I am dealing with the following Linear Feedback Model: y_{it} = a*y_{it-1} + e…
Threshold GMM for nonlinear Taylor rulesHello everyone, Please I need some help in estimating threshold Taylor rules using GMM as was done …
Plot mean and standard deviation by time, for two groups on the same figureI am trying to plot the time series of mean and standard deviation of a variable, for 2 different gr…
CPS employment to unemployment transitionHello stata community, I have been working with static variable of employment and unemployment with…
Regressions with 'long'/panel data: misleading test statistics?Greetings, I'm running Stata 15.1 on a Mac OS and am currently working with Pew panel data. I belie…
Subscribe to:
Post Comments (Atom)
0 Response to Lagged variable that covers a range of time?
Post a Comment