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
Cluster ValidationDear Stata users, I was wondering whether there are any options to perform cluster validation in Sta…
if and else in Stata versus MataDear all I am analysing the Mata code behind a command (fairlie) in order to understand what actuall…
GRAVITY PPML vs ML(maximum likelihood )hello all... I hope to know what is differenct between PPML and ML in gravity model thank you..!! …
Mechanics of FE in DiD estimationIt is not clear to me how the FE demeaning mechanically affects an estimation, especially with respe…
Renaming with nested loops over irregularly repeated variables in order to prepare data for RESHAPEHi everyone, Thanks for what you do, I have benefited from your discussions for a long time before …
Subscribe to:
Post Comments (Atom)
0 Response to "variable ccode not found" when doing a xtreg
Post a Comment