Hi,
I am trying to test for potential reverse causality between RTAs using a gravity model.
RTA = 1 if exporter and importer have a RTA at year t.
The pairid is the distance between exporter and importer.
I would like to generate a lead variable capturing the future level of RTAs (in the next 4 years):
tsset pairid year
gen RTA_LEAD4 = f4.RTA
replace RTA_LEAD4 = 0 if RTA_LEAD4 == .
However, I received this error:
tsset pairid year
repeated time values within panel
I think this is because in my database trade flows are treated separately each way (exports and imports) so each pairid of countries is two times each year.
How could I generate the RTA_LEAD4 without changing my pairid?
Thanks!!
Related Posts with Gravity Model: reverse causality LEAD variable
Renaming Windows directory using Stata syntax?Dear Statalist Is there a way to rename directories on my Windows PC from within Stata? I found how…
Blanks in polychoric matrixHi, does any one know the reason why the polychoric matrix often include blank values? Why is the th…
Pedroni's Panel Cointegration Tests and Panel Dynamic OLS estimationDear all, I was trying to conduct the Pedroni's Panel Cointegration Tests and Panel Dynamic OLS est…
Issue with predictnlDear All, I am going through the paper by Karaka-Mandic, Norton and Down (2012) "Interaction terms …
Heteroscedasticity and auto correlation in dummy variablesi am calculating CSSDt and Rmt from a cross section data .I calculated the Q1 and Q3 from Rmt to sho…
Subscribe to:
Post Comments (Atom)
0 Response to Gravity Model: reverse causality LEAD variable
Post a Comment