Hello everybody!
I am quite new to Stata, and have much to learn. However, I am trying to perform a regression on a data set with data taken from CEPII. I have a panel data with many countries and their trade partner as observation, and the variables I have included are exports, imports, distance, population, GDP, colonial history, common languages, contiguity and the existence of free trade agreement.
However, when trying to perform the command xtreg logXPTOT lgdp_o lgdp_d lpop_o lpop_d logDist Comlang Contig Evercol EU Zaf_fta, fe, I get the error message: ""variable ccode not found". I have installed xtpattern. Another question, how do I generate the variable fe?
I would be very grateful if someone had a solution to my problem.
Thank you
Related Posts with "variable ccode not found" when doing a xtreg
Intercept-Only regression with an interaction term - What does it mean?If I estimate an intercept only model in Stata reg c.y I get an estimate of a constant that shows …
I would like to merge two databases but I can not merge firms with two ISINI use a database in which firms have sometimes two International Securities Identification Number (I…
GrowthHi, I have an unbalanced panel data with id year (1997-2003) and I would like to calculate the growt…
Renaming local contentsHi all, I am performing the following loop: Code: foreach rec of local recall { tokenize `rec…
Comparing fixed effects coefficients for several dependent variableDear all, I have estimated a fixed effect panel regression model for several dependent variable in m…
Subscribe to:
Post Comments (Atom)
0 Response to "variable ccode not found" when doing a xtreg
Post a Comment