Hi,
I have the RTA dummy that indicates if a pair of countries have a Regional Trade Agreement.
My panel data is from 1991-2018 with 3-year intervals (10 years)
How could I generate 3 lags for the RTA dummy?
Is it correct like this?:
tsset pairid year
forvalues t = 3(3)9 {
generate RTA_LAG`t' = L`t'.RTA
replace RTA_LAG`t' = 0 if RTA_LAG`t' == .
Thanks!
Related Posts with Lags of RTAs
Name variableHello, I have a dataset with a variable called "Country". I would like to know the code to know the…
How to replace inconsistent identity code with the majority identity within 6 years?I have 140,000 firms for 2010-2015. I want to check whether the industrial code (indcode) is consist…
Seeking a way to examine the sensitivity of one variable with respect to another (both a time series)Hi, this maybe a very rookie question, but many thanks for any help. I have a data like this Sta…
Creating a dummy based on a combinationHi all, I am trying to create a dummy variable based on the particular combination of two other dum…
Panel data - dropping all observations after a switchHi everyone, I have panel data below (just one id shown), it is sorted by id and date I want to be …
Subscribe to:
Post Comments (Atom)
0 Response to Lags of RTAs
Post a Comment