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
re-generate time varying variable when collapsing from daily panel data to monthly panel dataDear Statalist Members, Hi, I'm trying to convert my daily panel data to monthly panel data using c…
Testing statistical difference in coefficients after ppml estimation of gravity modelDear all, I am running a PPML regression for a trade gravity model using bilateral trade flows and …
Predicted probability for X-variable categoriesDear community! I use probit regression to analyse probability of public attitudes (0 - 4). One of m…
Creating Variable - years since an eventHi there, I have a panel dataset and wish to do a regression analysis that involves a variable, "Ye…
Adding day of the week variable to a GARCH(1,1)Hi all, I'm still relatively new to Stata so could use some help. I'm trying to do a GARCH regressi…
Subscribe to:
Post Comments (Atom)
0 Response to "variable ccode not found" when doing a xtreg
Post a Comment