Hello Statalisters,
I have a country panel which involves around 31 countries with data on variables gathered from 1996 to 2017. I want to have gathered immigration data from the US on country of origin, so I am looking at reasons why people migrate from their respective countries to the United states. I have around 5 main independent variables that are factors in affecting migration and another independent variable which is a control which is population. I have also calculated the same 5 independent variables but relative to the US that I want to run in a separate regression. Here are the commands I ran:
encode country, gen(country1)
xtset country1 year
xtreg immigration var1 var 2 var3 var4 var5 var6 i.year, fe vce(robust)
Do you see any issues with what I have done, and would you say the fixed effects model I am running is most suitable?
What ways would you recommend I check how good my model is currently? I am a beginner in econometrics so I do not have much knowledge, apologies if the answers to the question I posed is obvious.
Thanks,
Aneethan
Related Posts with Fixed effect regression for country panel
Replace "statsby" by "runby" to save timeHi, I am currently running regressions by group and saving coefficients using "statsby". It turns o…
Estimation of Markov Switching modelsHi, I am estimating a Markov Switching models using the mswitch command. This code runs for country …
Bar Graph with multiples variables and categoriesHi, everyone! I need to perform a bar graph with 2 variables containing 4 categories each. The 2 var…
Prevalence with multiple variablesHello, I am analyzing a hospital dataset which provides demographic, diagnostic, and procedural data…
"No room to add more variables": Stata tries to load empty spreadsheetHi, I am trying to import an Excel spreadsheet the usual way but I am getting an error: Code: . im…
Subscribe to:
Post Comments (Atom)
0 Response to Fixed effect regression for country panel
Post a Comment