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
adding top 3 variables with the highest value out of 6 variables for each observationHi, I have 6 variables each having a range of values. For each observation I want to add the 3 vari…
How do I store coefficients from GARCH model in a postfile Code: capture postutil clear postfile table1 arch using "vov.garch.dta", replace arch vov, arch(1…
Interpretation Competing Risk (Stcrreg) – Comparability of CovariatesDear Stata Users, I have a question regarding the interpretation and comparability of the hazard ra…
Admetan | Forest plot formattingHello, I have a series of forest plots, which I need to edit further. An extract of the code for o…
How to append a sub-set of observations.Hi everyone, So, I have a very large yearly database on students of different educational levels (3…
Subscribe to:
Post Comments (Atom)
0 Response to Lags of RTAs
Post a Comment