Dear Tom Zylkin !
I was reading your paper, On the widely differing effects of free trade agreements: Lessons from twenty years of trade integration. JIE (2019), where FTAij,t is an indicator that takes the value 1 were i and j are members of same FTA at time t and is equal to zero otherwise. Further, to estimate the phased-in and lagged effects you include a 5-year lag FTAij,t-5 as an additional regressor.
In my case, I want to extend the logic to preferential trade agreements (which is also an indicator =1 if two countries are part of PTA at time t and 0 otherwise ). Further, I am using data on consecutive years (annual data) not the interval data as in Anderson and Yotov (2016) which use 4-year interval data or Baier and Bergstrand (2007) which use 5-year interval data.
I want to create 7 treatment lags (PTAij,t-1 ; PTAij,t-2 ; PTAij,t-3 ; PTAij,t-4 ; PTAij,t-5 ; PTAij,t-6 and PTAij,t-7) to accounts for the possibility that FTA effects may“phase-in” over time. To test whether PTA is strictly "exogenous", I want to additionally generate 4 treatment leads (PTAij,t+1 ; PTAij,t+2 ; PTAij,t+3 ; PTAij,t+4)
However, the PTA indicator switches ON and OFF for a given country-pair across time, that is; it is 0 from t1-t3, then 1 from t4-t7, 0 from t8-t12 and again 1 from t13-t19 (say). I ran the following codes to obtain how many times does the PTA indicator switches from 0 to 1 across sample time in a given bilateral pair
The counter gives the number of times PTA turns ON and OFF in a given pair across time. I am posting a simple dataex example here to highlight the nature of PTA indicator in my case.
The PTA is 0 from 1995-1997, then it is 1 from 1998-2003, then 0 from 2004-2013 and again 1 from 2014-2017. Therefore it switches four time from 0 to 1 between the same country pair across time.
I am not sure How to generate the PTA leads and lags in this case and whether it makes sense. Please get back to me. I shall be very thankful.
Thanks and regards,
(Ridwan)
I was reading your paper, On the widely differing effects of free trade agreements: Lessons from twenty years of trade integration. JIE (2019), where FTAij,t is an indicator that takes the value 1 were i and j are members of same FTA at time t and is equal to zero otherwise. Further, to estimate the phased-in and lagged effects you include a 5-year lag FTAij,t-5 as an additional regressor.
In my case, I want to extend the logic to preferential trade agreements (which is also an indicator =1 if two countries are part of PTA at time t and 0 otherwise ). Further, I am using data on consecutive years (annual data) not the interval data as in Anderson and Yotov (2016) which use 4-year interval data or Baier and Bergstrand (2007) which use 5-year interval data.
I want to create 7 treatment lags (PTAij,t-1 ; PTAij,t-2 ; PTAij,t-3 ; PTAij,t-4 ; PTAij,t-5 ; PTAij,t-6 and PTAij,t-7) to accounts for the possibility that FTA effects may“phase-in” over time. To test whether PTA is strictly "exogenous", I want to additionally generate 4 treatment leads (PTAij,t+1 ; PTAij,t+2 ; PTAij,t+3 ; PTAij,t+4)
However, the PTA indicator switches ON and OFF for a given country-pair across time, that is; it is 0 from t1-t3, then 1 from t4-t7, 0 from t8-t12 and again 1 from t13-t19 (say). I ran the following codes to obtain how many times does the PTA indicator switches from 0 to 1 across sample time in a given bilateral pair
Code:
bysort iso_* (year) : gen counter = sum(pta != pta[_n-1]) by iso_* : replace counter = counter[_N]
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str1(iso_i iso_j) int year byte pta "A" "B" 1995 0 "A" "B" 1996 0 "A" "B" 1997 0 "A" "B" 1998 1 "A" "B" 1999 1 "A" "B" 2000 1 "A" "B" 2001 1 "A" "B" 2002 1 "A" "B" 2003 1 "A" "B" 2004 0 "A" "B" 2005 0 "A" "B" 2006 0 "A" "B" 2007 0 "A" "B" 2008 0 "A" "B" 2009 0 "A" "B" 2010 0 "A" "B" 2011 0 "A" "B" 2012 0 "A" "B" 2013 0 "A" "B" 2014 1 "A" "B" 2015 1 "A" "B" 2016 1 "A" "B" 2017 1 end
I am not sure How to generate the PTA leads and lags in this case and whether it makes sense. Please get back to me. I shall be very thankful.
Thanks and regards,
(Ridwan)
Comment