Dear Statalist Forum,
I need your help for my working paper. I have learn in this forum many things about fixed effet but I begin in stata so....I ask you a little help.
I work on exportations between country (i), country(j), time (year) and products (hs). Every flow is specified by this 4 components. Time value is 2008,2010,2012,2014,2016 and 2018. Every country have number iso, code iso and namecountry (respectively named i isoi countryi and j isoj countryj). i=94 country and j=94 country.
I would make a regression of my dependant variable (q) and my explicative variable (gradianport). Gradianport is a score of port infrastructure between country i and country j.
I would like to create exporter (for country i) time effect and importer (for country j) time effect.

I have test a stata command xtset to create time fixed effect:
xtset i j hs year , delta(2) ==> error 103: too many variables specified
xtset i year, delta(2) ==> error 451; repeated time values within panel
I don't know how specified my import(j) and export(i) variable.
After this step, I need to use: xtreg q gradiantport i.year i.i i.j, fe , no?
Thank you for your help,
Florian Palmito
I need your help for my working paper. I have learn in this forum many things about fixed effet but I begin in stata so....I ask you a little help.
I work on exportations between country (i), country(j), time (year) and products (hs). Every flow is specified by this 4 components. Time value is 2008,2010,2012,2014,2016 and 2018. Every country have number iso, code iso and namecountry (respectively named i isoi countryi and j isoj countryj). i=94 country and j=94 country.
I would make a regression of my dependant variable (q) and my explicative variable (gradianport). Gradianport is a score of port infrastructure between country i and country j.
I would like to create exporter (for country i) time effect and importer (for country j) time effect.
I have test a stata command xtset to create time fixed effect:
xtset i j hs year , delta(2) ==> error 103: too many variables specified
xtset i year, delta(2) ==> error 451; repeated time values within panel
I don't know how specified my import(j) and export(i) variable.
After this step, I need to use: xtreg q gradiantport i.year i.i i.j, fe , no?
Thank you for your help,
Florian Palmito
Comment