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
rearranging observationsDear Stata Users, I am working with data and I would like to know how to rearrange some variables. …
Program a logistics commandHey everyone, I am trying to write a program that will do logistics on different variables. Final s…
Princeton's Event study did not generate the predicted returnHi everyone, I've gone through the Princeton event study stata coding, everything run through (I ha…
Interpreting control variables- percentage or percentage point?I am conducting a difference-in-difference regression where the probability of being unemployed is m…
Multicollinearity in a panel regressionHello, I have downloaded data from the Barro-Lee educational attainment data set and merged this wi…
Subscribe to:
Post Comments (Atom)
0 Response to "variable ccode not found" when doing a xtreg
Post a Comment