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
address the endogeneity issueHi all! I want to address the endogeneity issue in my paper. I have panel data (gvkey and fyear). …
replacing values of a new variable with valid values of other variablesHi, I would like to generate a new variable and fill the new variable with the valid values from a l…
smoothing linesDear Stata users, I am using Stata 15 and trying to plot changes in sb1 vs years by age-groups (4 d…
Panel data: Multiple observations per yearHi, I'm new to STATA and its commands so excuse my inexperience. My dataset contains multiple obser…
How to extract the last seven digits of nine-digits numbers?I'm having problems trying to extract digits from numbers. My dataset has a variable called "munici…
Subscribe to:
Post Comments (Atom)
0 Response to Fixed effect regression for country panel
Post a Comment