clear set memory 150m set matsize 2500 set more off /* ********************************************************************************************************************************* */ /* ********************************************************************************************************************************* */ /* Jens Hainmueller and Michael J. Hiscox 2004: Educated Preferences: Explaining Attitudes Toward Immigration in Europe */ /* Do File 1: Replication Tables 1-10 */ /* Version 1.2 09/10/2004 */ /* using file: "ESSvol5recodedHH2004.dta" --> Please copy this dataset to your STATA working directory and run the do file */ /* ********************************************************************************************************************************* */ /* Requires ado files "outreg", "dprobit" and "prchange" (all available for download via STATA help) */ /* ********************************************************************************************************************************* */ /* Replication of Tables 1-10 */ /* Log files for table estimations labeled ReplicationHH2004Table1.log, etc. are also created in your STATA working directory */ /* Thank you for your interest in our research */ /* For questions please email: Jens_Hainmueller@ksg05.harvard.edu */ /* ********************************************************************************************************************************* */ /* ********************************************************************************************************************************* */ use "ESSvol5recodedHH2004.dta", clear log using ReplicationHH2004Table1.log, replace /* ******************************************************************************************* */ /* Table 1 ************************ */ /* Descriptives Dependent Variables */ /* Immigration from Richer Europe */ tab iricheur_ordprobit [aweight=PDWEIGHT], missing sum iricheur1 [aweight=PDWEIGHT] /* Immigration from Poorer Europe */ tab ipooreur_ordprobit [aweight=PDWEIGHT], missing sum ipooreur1 [aweight=PDWEIGHT] /* Immigration from Richer Non-European */ tab irichnoeur_ordprobit [aweight=PDWEIGHT], missing sum irichnoeur1 [aweight=PDWEIGHT] /* Immigration from Poorer Non-European */ tab ipoornoeur_ordprobit [aweight=PDWEIGHT], missing sum ipoornoeur1 [aweight=PDWEIGHT] /* ******************************************************************************************** */ log close log using ReplicationHH2004TableA1.log, replace /* ******************************************************************************************** */ /* Table A1 ******************************* */ /* Descriptive Statistics (Full ESS sample) */ sum eduattain schooling ELEMENTARY HIGHSCHOOL COLLEGE PHD skill345 skill1 skill2 skill3 skill4 skill5 age gender income native immigrant_friends minority_area partisan_right racism crime antihate culture multiculti economy [aweight=PDWEIGHT] /* ******************************************************************************************** */ log close log using ReplicationHH2004Table2.log, replace /* ******************************************************************************************** */ /* Table 2 *************************************** */ /* Single Country Descriptives Dependent Variables */ /* Immigration from Europe*/ table CNTRY [aweight=DWEIGHT] , c(mean iricheur1 n iricheur1 mean ipooreur1 n ipooreur1 ) /* Immigration from Outside Europe */ table CNTRY [aweight=DWEIGHT] , c(mean irichnoeur1 n irichnoeur1 mean ipoornoeur1 n ipoornoeur1) /* ******************************************************************************************** */ log close log using ReplicationHH2004Table3.log, replace /* ******************************************************************************************** */ /* Table 3 ****************************************************************** */ /* Baseline model estimates for educational attainment and years of schooling */ /* Set up covariates matrix for baseline specification */ gen xxage=age gen xxgender=gender gen xxincome=income gen xxnative=native gen xximmigrant_friends=immigrant_friends gen xxminority_area=minority_area gen xxpartisan_right=partisan_right /* Basline estimates */ /* Skill Proxy: Educational Attainment */ /* Immigration from Richer Europe*/ xi: dprobit iricheur1 eduattain xx* i.CNTRY [pweight=PDWEIGHT], cl(REGINDICATOR) /* Immigration from Poorer Europe*/ xi: dprobit ipooreur1 eduattain xx* i.CNTRY [pweight=PDWEIGHT], cl(REGINDICATOR) /* Immigration from Richer Non-European*/ xi: dprobit irichnoeur1 eduattain xx* i.CNTRY [pweight=PDWEIGHT], cl(REGINDICATOR) /* Immigration from Poorer Non-European*/ xi: dprobit ipoornoeur1 eduattain xx* i.CNTRY [pweight=PDWEIGHT], cl(REGINDICATOR) /* Skill Proxy: Years of Schooling */ /* Immigration from Richer Europe*/ xi: dprobit iricheur1 schooling xx* i.CNTRY [pweight=PDWEIGHT], cl(REGINDICATOR) /* Immigration from Poorer Europe*/ xi: dprobit ipooreur1 schooling xx* i.CNTRY [pweight=PDWEIGHT], cl(REGINDICATOR) /* Immigration from Richer Non-European*/ xi: dprobit irichnoeur1 schooling xx* i.CNTRY [pweight=PDWEIGHT], cl(REGINDICATOR) /* Immigration from Poorer Non-European*/ xi: dprobit ipoornoeur1 schooling xx* i.CNTRY [pweight=PDWEIGHT], cl(REGINDICATOR) /* ************************************************************************************************************ */ log close log using ReplicationHH2004Table4.log, replace /* ************************************************************************************************************ */ /* Table 4 **************************************************************************************************** */ /* Single Country model estimates (22 Countries): Baseline model with educational attainment/years of schooling */ /* Models with "income" */ /* Skill Proxy: Educational Atainment */ /* Immigration from Richer Europe */ xi: dprobit iricheur1 eduattain xx* if CNTRY=="LU" [pweight=DWEIGHT] , robust /* Note single country models for LUXEMBURG are estimated with robust SE only because the whole country is one single region */ xi: dprobit iricheur1 eduattain xx* if CNTRY=="NO" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 eduattain xx* if CNTRY=="IE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 eduattain xx* if CNTRY=="DK" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 eduattain xx* if CNTRY=="CH" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 eduattain xx* if CNTRY=="AT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 eduattain xx* if CNTRY=="NL" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 eduattain xx* if CNTRY=="BE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 eduattain xx* if CNTRY=="DE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 eduattain xx* if CNTRY=="FR" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 eduattain xx* if CNTRY=="FI" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 eduattain xx* if CNTRY=="IT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 eduattain xx* if CNTRY=="GB" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 eduattain xx* if CNTRY=="SE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 eduattain xx* if CNTRY=="IL" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 eduattain xx* if CNTRY=="ES" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 eduattain xx* if CNTRY=="PT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 eduattain xx* if CNTRY=="GR" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 eduattain xx* if CNTRY=="SI" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 eduattain xx* if CNTRY=="CZ" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 eduattain xx* if CNTRY=="HU" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 eduattain xx* if CNTRY=="PL" [pweight=DWEIGHT] , cl(REGINDICATOR) /* Immigration from Poorer Europe */ xi: dprobit ipooreur1 eduattain xx* if CNTRY=="LU" [pweight=DWEIGHT] , robust xi: dprobit ipooreur1 eduattain xx* if CNTRY=="NO" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 eduattain xx* if CNTRY=="IE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 eduattain xx* if CNTRY=="DK" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 eduattain xx* if CNTRY=="CH" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 eduattain xx* if CNTRY=="AT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 eduattain xx* if CNTRY=="NL" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 eduattain xx* if CNTRY=="BE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 eduattain xx* if CNTRY=="DE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 eduattain xx* if CNTRY=="FR" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 eduattain xx* if CNTRY=="FI" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 eduattain xx* if CNTRY=="IT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 eduattain xx* if CNTRY=="GB" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 eduattain xx* if CNTRY=="SE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 eduattain xx* if CNTRY=="IL" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 eduattain xx* if CNTRY=="ES" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 eduattain xx* if CNTRY=="PT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 eduattain xx* if CNTRY=="GR" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 eduattain xx* if CNTRY=="SI" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 eduattain xx* if CNTRY=="CZ" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 eduattain xx* if CNTRY=="HU" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 eduattain xx* if CNTRY=="PL" [pweight=DWEIGHT] , cl(REGINDICATOR) /* Immigration from Richer Outside Europe */ xi: dprobit irichnoeur1 eduattain xx* if CNTRY=="LU" [pweight=DWEIGHT] , robust xi: dprobit irichnoeur1 eduattain xx* if CNTRY=="NO" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 eduattain xx* if CNTRY=="IE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 eduattain xx* if CNTRY=="DK" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 eduattain xx* if CNTRY=="CH" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 eduattain xx* if CNTRY=="AT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 eduattain xx* if CNTRY=="NL" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 eduattain xx* if CNTRY=="BE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 eduattain xx* if CNTRY=="DE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 eduattain xx* if CNTRY=="FR" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 eduattain xx* if CNTRY=="FI" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 eduattain xx* if CNTRY=="IT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 eduattain xx* if CNTRY=="GB" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 eduattain xx* if CNTRY=="SE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 eduattain xx* if CNTRY=="IL" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 eduattain xx* if CNTRY=="ES" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 eduattain xx* if CNTRY=="PT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 eduattain xx* if CNTRY=="GR" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 eduattain xx* if CNTRY=="SI" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 eduattain xx* if CNTRY=="CZ" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 eduattain xx* if CNTRY=="HU" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 eduattain xx* if CNTRY=="PL" [pweight=DWEIGHT] , cl(REGINDICATOR) /* Immigration from Poorer Outside Europe */ xi: dprobit ipoornoeur1 eduattain xx* if CNTRY=="LU" [pweight=DWEIGHT] , robust xi: dprobit ipoornoeur1 eduattain xx* if CNTRY=="NO" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 eduattain xx* if CNTRY=="IE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 eduattain xx* if CNTRY=="DK" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 eduattain xx* if CNTRY=="CH" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 eduattain xx* if CNTRY=="AT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 eduattain xx* if CNTRY=="NL" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 eduattain xx* if CNTRY=="BE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 eduattain xx* if CNTRY=="DE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 eduattain xx* if CNTRY=="FR" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 eduattain xx* if CNTRY=="FI" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 eduattain xx* if CNTRY=="IT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 eduattain xx* if CNTRY=="GB" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 eduattain xx* if CNTRY=="SE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 eduattain xx* if CNTRY=="IL" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 eduattain xx* if CNTRY=="ES" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 eduattain xx* if CNTRY=="PT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 eduattain xx* if CNTRY=="GR" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 eduattain xx* if CNTRY=="SI" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 eduattain xx* if CNTRY=="CZ" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 eduattain xx* if CNTRY=="HU" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 eduattain xx* if CNTRY=="PL" [pweight=DWEIGHT] , cl(REGINDICATOR) /* Years of Schooling */ /* Immigration from Richer Europe */ xi: dprobit iricheur1 schooling xx* if CNTRY=="LU" [pweight=DWEIGHT] , robust xi: dprobit iricheur1 schooling xx* if CNTRY=="NO" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 schooling xx* if CNTRY=="IE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 schooling xx* if CNTRY=="DK" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 schooling xx* if CNTRY=="CH" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 schooling xx* if CNTRY=="AT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 schooling xx* if CNTRY=="NL" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 schooling xx* if CNTRY=="BE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 schooling xx* if CNTRY=="DE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 schooling xx* if CNTRY=="FR" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 schooling xx* if CNTRY=="FI" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 schooling xx* if CNTRY=="IT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 schooling xx* if CNTRY=="GB" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 schooling xx* if CNTRY=="SE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 schooling xx* if CNTRY=="IL" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 schooling xx* if CNTRY=="ES" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 schooling xx* if CNTRY=="PT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 schooling xx* if CNTRY=="GR" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 schooling xx* if CNTRY=="SI" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 schooling xx* if CNTRY=="CZ" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 schooling xx* if CNTRY=="HU" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 schooling xx* if CNTRY=="PL" [pweight=DWEIGHT] , cl(REGINDICATOR) /* Immigration from Poorer Europe */ xi: dprobit ipooreur1 schooling xx* if CNTRY=="LU" [pweight=DWEIGHT] , robust xi: dprobit ipooreur1 schooling xx* if CNTRY=="NO" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 schooling xx* if CNTRY=="IE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 schooling xx* if CNTRY=="DK" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 schooling xx* if CNTRY=="CH" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 schooling xx* if CNTRY=="AT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 schooling xx* if CNTRY=="NL" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 schooling xx* if CNTRY=="BE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 schooling xx* if CNTRY=="DE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 schooling xx* if CNTRY=="FR" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 schooling xx* if CNTRY=="FI" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 schooling xx* if CNTRY=="IT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 schooling xx* if CNTRY=="GB" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 schooling xx* if CNTRY=="SE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 schooling xx* if CNTRY=="IL" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 schooling xx* if CNTRY=="ES" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 schooling xx* if CNTRY=="PT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 schooling xx* if CNTRY=="GR" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 schooling xx* if CNTRY=="SI" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 schooling xx* if CNTRY=="CZ" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 schooling xx* if CNTRY=="HU" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 schooling xx* if CNTRY=="PL" [pweight=DWEIGHT] , cl(REGINDICATOR) /* Immigration from Richer Outside Europe */ xi: dprobit irichnoeur1 schooling xx* if CNTRY=="LU" [pweight=DWEIGHT] , robust xi: dprobit irichnoeur1 schooling xx* if CNTRY=="NO" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 schooling xx* if CNTRY=="IE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 schooling xx* if CNTRY=="DK" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 schooling xx* if CNTRY=="CH" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 schooling xx* if CNTRY=="AT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 schooling xx* if CNTRY=="NL" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 schooling xx* if CNTRY=="BE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 schooling xx* if CNTRY=="DE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 schooling xx* if CNTRY=="FR" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 schooling xx* if CNTRY=="FI" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 schooling xx* if CNTRY=="IT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 schooling xx* if CNTRY=="GB" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 schooling xx* if CNTRY=="SE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 schooling xx* if CNTRY=="IL" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 schooling xx* if CNTRY=="ES" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 schooling xx* if CNTRY=="PT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 schooling xx* if CNTRY=="GR" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 schooling xx* if CNTRY=="SI" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 schooling xx* if CNTRY=="CZ" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 schooling xx* if CNTRY=="HU" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 schooling xx* if CNTRY=="PL" [pweight=DWEIGHT] , cl(REGINDICATOR) /* Immigration from Poorer Outside Europe */ xi: dprobit ipoornoeur1 schooling xx* if CNTRY=="LU" [pweight=DWEIGHT] , robust xi: dprobit ipoornoeur1 schooling xx* if CNTRY=="NO" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 schooling xx* if CNTRY=="IE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 schooling xx* if CNTRY=="DK" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 schooling xx* if CNTRY=="CH" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 schooling xx* if CNTRY=="AT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 schooling xx* if CNTRY=="NL" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 schooling xx* if CNTRY=="BE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 schooling xx* if CNTRY=="DE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 schooling xx* if CNTRY=="FR" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 schooling xx* if CNTRY=="FI" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 schooling xx* if CNTRY=="IT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 schooling xx* if CNTRY=="GB" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 schooling xx* if CNTRY=="SE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 schooling xx* if CNTRY=="IL" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 schooling xx* if CNTRY=="ES" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 schooling xx* if CNTRY=="PT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 schooling xx* if CNTRY=="GR" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 schooling xx* if CNTRY=="SI" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 schooling xx* if CNTRY=="CZ" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 schooling xx* if CNTRY=="HU" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 schooling xx* if CNTRY=="PL" [pweight=DWEIGHT] , cl(REGINDICATOR) /* Marginal effects for the attainment/schooling variable of all above models */ /* are stored in a separate sub-dataset: "figure1.dta" (available for download on the paper website) */ /* this sub-dataset was used to create Figure 1 */ /* ******************************************************************************************* */ log close log using ReplicationHH2004Table4b.log, replace /* ************************************************************************************************************ */ /* Table 4b *************************************************************************************************** */ /* Single Country model estimates (22 Countries): Baseline model with educational attainment/years of schooling */ /* Models with "perceived income" */ /* Set up new covariates matrix for basline specification */ drop xxincome gen xxperincome=perincome /* Skill Proxy: Educational Atainment */ /* Immigration from Richer Europe */ xi: dprobit iricheur1 eduattain xx* if CNTRY=="LU" [pweight=DWEIGHT] , robust xi: dprobit iricheur1 eduattain xx* if CNTRY=="NO" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 eduattain xx* if CNTRY=="IE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 eduattain xx* if CNTRY=="DK" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 eduattain xx* if CNTRY=="CH" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 eduattain xx* if CNTRY=="AT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 eduattain xx* if CNTRY=="NL" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 eduattain xx* if CNTRY=="BE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 eduattain xx* if CNTRY=="DE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 eduattain xx* if CNTRY=="FR" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 eduattain xx* if CNTRY=="FI" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 eduattain xx* if CNTRY=="IT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 eduattain xx* if CNTRY=="GB" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 eduattain xx* if CNTRY=="SE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 eduattain xx* if CNTRY=="IL" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 eduattain xx* if CNTRY=="ES" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 eduattain xx* if CNTRY=="PT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 eduattain xx* if CNTRY=="GR" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 eduattain xx* if CNTRY=="SI" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 eduattain xx* if CNTRY=="CZ" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 eduattain xx* if CNTRY=="HU" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 eduattain xx* if CNTRY=="PL" [pweight=DWEIGHT] , cl(REGINDICATOR) /* Immigration from Poorer Europe */ xi: dprobit ipooreur1 eduattain xx* if CNTRY=="LU" [pweight=DWEIGHT] , robust xi: dprobit ipooreur1 eduattain xx* if CNTRY=="NO" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 eduattain xx* if CNTRY=="IE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 eduattain xx* if CNTRY=="DK" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 eduattain xx* if CNTRY=="CH" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 eduattain xx* if CNTRY=="AT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 eduattain xx* if CNTRY=="NL" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 eduattain xx* if CNTRY=="BE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 eduattain xx* if CNTRY=="DE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 eduattain xx* if CNTRY=="FR" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 eduattain xx* if CNTRY=="FI" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 eduattain xx* if CNTRY=="IT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 eduattain xx* if CNTRY=="GB" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 eduattain xx* if CNTRY=="SE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 eduattain xx* if CNTRY=="IL" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 eduattain xx* if CNTRY=="ES" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 eduattain xx* if CNTRY=="PT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 eduattain xx* if CNTRY=="GR" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 eduattain xx* if CNTRY=="SI" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 eduattain xx* if CNTRY=="CZ" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 eduattain xx* if CNTRY=="HU" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 eduattain xx* if CNTRY=="PL" [pweight=DWEIGHT] , cl(REGINDICATOR) /* Immigration from Richer Outside Europe */ xi: dprobit irichnoeur1 eduattain xx* if CNTRY=="LU" [pweight=DWEIGHT] , robust xi: dprobit irichnoeur1 eduattain xx* if CNTRY=="NO" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 eduattain xx* if CNTRY=="IE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 eduattain xx* if CNTRY=="DK" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 eduattain xx* if CNTRY=="CH" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 eduattain xx* if CNTRY=="AT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 eduattain xx* if CNTRY=="NL" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 eduattain xx* if CNTRY=="BE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 eduattain xx* if CNTRY=="DE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 eduattain xx* if CNTRY=="FR" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 eduattain xx* if CNTRY=="FI" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 eduattain xx* if CNTRY=="IT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 eduattain xx* if CNTRY=="GB" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 eduattain xx* if CNTRY=="SE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 eduattain xx* if CNTRY=="IL" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 eduattain xx* if CNTRY=="ES" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 eduattain xx* if CNTRY=="PT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 eduattain xx* if CNTRY=="GR" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 eduattain xx* if CNTRY=="SI" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 eduattain xx* if CNTRY=="CZ" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 eduattain xx* if CNTRY=="HU" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 eduattain xx* if CNTRY=="PL" [pweight=DWEIGHT] , cl(REGINDICATOR) /* Immigration from Poorer Outside Europe */ xi: dprobit ipoornoeur1 eduattain xx* if CNTRY=="LU" [pweight=DWEIGHT] , robust xi: dprobit ipoornoeur1 eduattain xx* if CNTRY=="NO" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 eduattain xx* if CNTRY=="IE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 eduattain xx* if CNTRY=="DK" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 eduattain xx* if CNTRY=="CH" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 eduattain xx* if CNTRY=="AT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 eduattain xx* if CNTRY=="NL" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 eduattain xx* if CNTRY=="BE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 eduattain xx* if CNTRY=="DE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 eduattain xx* if CNTRY=="FR" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 eduattain xx* if CNTRY=="FI" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 eduattain xx* if CNTRY=="IT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 eduattain xx* if CNTRY=="GB" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 eduattain xx* if CNTRY=="SE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 eduattain xx* if CNTRY=="IL" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 eduattain xx* if CNTRY=="ES" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 eduattain xx* if CNTRY=="PT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 eduattain xx* if CNTRY=="GR" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 eduattain xx* if CNTRY=="SI" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 eduattain xx* if CNTRY=="CZ" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 eduattain xx* if CNTRY=="HU" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 eduattain xx* if CNTRY=="PL" [pweight=DWEIGHT] , cl(REGINDICATOR) /* Years of Schooling */ /* Immigration from Richer Europe */ xi: dprobit iricheur1 schooling xx* if CNTRY=="LU" [pweight=DWEIGHT] , robust xi: dprobit iricheur1 schooling xx* if CNTRY=="NO" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 schooling xx* if CNTRY=="IE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 schooling xx* if CNTRY=="DK" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 schooling xx* if CNTRY=="CH" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 schooling xx* if CNTRY=="AT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 schooling xx* if CNTRY=="NL" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 schooling xx* if CNTRY=="BE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 schooling xx* if CNTRY=="DE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 schooling xx* if CNTRY=="FR" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 schooling xx* if CNTRY=="FI" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 schooling xx* if CNTRY=="IT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 schooling xx* if CNTRY=="GB" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 schooling xx* if CNTRY=="SE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 schooling xx* if CNTRY=="IL" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 schooling xx* if CNTRY=="ES" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 schooling xx* if CNTRY=="PT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 schooling xx* if CNTRY=="GR" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 schooling xx* if CNTRY=="SI" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 schooling xx* if CNTRY=="CZ" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 schooling xx* if CNTRY=="HU" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 schooling xx* if CNTRY=="PL" [pweight=DWEIGHT] , cl(REGINDICATOR) /* Immigration from Poorer Europe */ xi: dprobit ipooreur1 schooling xx* if CNTRY=="LU" [pweight=DWEIGHT] , robust xi: dprobit ipooreur1 schooling xx* if CNTRY=="NO" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 schooling xx* if CNTRY=="IE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 schooling xx* if CNTRY=="DK" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 schooling xx* if CNTRY=="CH" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 schooling xx* if CNTRY=="AT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 schooling xx* if CNTRY=="NL" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 schooling xx* if CNTRY=="BE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 schooling xx* if CNTRY=="DE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 schooling xx* if CNTRY=="FR" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 schooling xx* if CNTRY=="FI" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 schooling xx* if CNTRY=="IT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 schooling xx* if CNTRY=="GB" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 schooling xx* if CNTRY=="SE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 schooling xx* if CNTRY=="IL" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 schooling xx* if CNTRY=="ES" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 schooling xx* if CNTRY=="PT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 schooling xx* if CNTRY=="GR" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 schooling xx* if CNTRY=="SI" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 schooling xx* if CNTRY=="CZ" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 schooling xx* if CNTRY=="HU" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 schooling xx* if CNTRY=="PL" [pweight=DWEIGHT] , cl(REGINDICATOR) /* Immigration from Richer Outside Europe */ xi: dprobit irichnoeur1 schooling xx* if CNTRY=="LU" [pweight=DWEIGHT] , robust xi: dprobit irichnoeur1 schooling xx* if CNTRY=="NO" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 schooling xx* if CNTRY=="IE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 schooling xx* if CNTRY=="DK" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 schooling xx* if CNTRY=="CH" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 schooling xx* if CNTRY=="AT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 schooling xx* if CNTRY=="NL" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 schooling xx* if CNTRY=="BE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 schooling xx* if CNTRY=="DE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 schooling xx* if CNTRY=="FR" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 schooling xx* if CNTRY=="FI" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 schooling xx* if CNTRY=="IT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 schooling xx* if CNTRY=="GB" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 schooling xx* if CNTRY=="SE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 schooling xx* if CNTRY=="IL" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 schooling xx* if CNTRY=="ES" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 schooling xx* if CNTRY=="PT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 schooling xx* if CNTRY=="GR" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 schooling xx* if CNTRY=="SI" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 schooling xx* if CNTRY=="CZ" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 schooling xx* if CNTRY=="HU" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 schooling xx* if CNTRY=="PL" [pweight=DWEIGHT] , cl(REGINDICATOR) /* Immigration from Poorer Outside Europe */ xi: dprobit ipoornoeur1 schooling xx* if CNTRY=="LU" [pweight=DWEIGHT] , robust xi: dprobit ipoornoeur1 schooling xx* if CNTRY=="NO" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 schooling xx* if CNTRY=="IE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 schooling xx* if CNTRY=="DK" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 schooling xx* if CNTRY=="CH" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 schooling xx* if CNTRY=="AT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 schooling xx* if CNTRY=="NL" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 schooling xx* if CNTRY=="BE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 schooling xx* if CNTRY=="DE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 schooling xx* if CNTRY=="FR" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 schooling xx* if CNTRY=="FI" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 schooling xx* if CNTRY=="IT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 schooling xx* if CNTRY=="GB" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 schooling xx* if CNTRY=="SE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 schooling xx* if CNTRY=="IL" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 schooling xx* if CNTRY=="ES" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 schooling xx* if CNTRY=="PT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 schooling xx* if CNTRY=="GR" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 schooling xx* if CNTRY=="SI" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 schooling xx* if CNTRY=="CZ" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 schooling xx* if CNTRY=="HU" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 schooling xx* if CNTRY=="PL" [pweight=DWEIGHT] , cl(REGINDICATOR) /* Set up old covariates matrix for basline specification */ drop xxperincome gen xxincome=income /* ******************************************************************************************* */ log close log using ReplicationHH2004Figure2.log, replace /* ******************************************************************************************* */ /* Figure 2 ******************************** */ /* Note: This figure is omitted in the paper results are just shown here for convenience */ /* Figure 2 provides essentially the same "scissoring" result as figure 1 using the skill345 instead of the education coeffcients */ /* Single Country estimates (22 Countries): Benchmark model with skill345*/ /* Immigration from Richer Europe */ xi: dprobit iricheur1 skill345 xx* if CNTRY=="LU" [pweight=DWEIGHT] , robust xi: dprobit iricheur1 skill345 xx* if CNTRY=="NO" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 skill345 xx* if CNTRY=="IE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 skill345 xx* if CNTRY=="DK" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 skill345 xx* if CNTRY=="CH" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 skill345 xx* if CNTRY=="AT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 skill345 xx* if CNTRY=="NL" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 skill345 xx* if CNTRY=="BE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 skill345 xx* if CNTRY=="DE" [pweight=DWEIGHT] , cl(REGINDICATOR) /* France omitted: no skill observations available */ xi: dprobit iricheur1 skill345 xx* if CNTRY=="FI" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 skill345 xx* if CNTRY=="IT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 skill345 xx* if CNTRY=="GB" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 skill345 xx* if CNTRY=="SE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 skill345 xx* if CNTRY=="IL" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 skill345 xx* if CNTRY=="ES" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 skill345 xx* if CNTRY=="PT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 skill345 xx* if CNTRY=="GR" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 skill345 xx* if CNTRY=="SI" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 skill345 xx* if CNTRY=="CZ" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 skill345 xx* if CNTRY=="HU" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit iricheur1 skill345 xx* if CNTRY=="PL" [pweight=DWEIGHT] , cl(REGINDICATOR) /* Immigration from Poorer Europe */ xi: dprobit ipooreur1 skill345 xx* if CNTRY=="LU" [pweight=DWEIGHT] , robust xi: dprobit ipooreur1 skill345 xx* if CNTRY=="NO" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 skill345 xx* if CNTRY=="IE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 skill345 xx* if CNTRY=="DK" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 skill345 xx* if CNTRY=="CH" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 skill345 xx* if CNTRY=="AT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 skill345 xx* if CNTRY=="NL" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 skill345 xx* if CNTRY=="BE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 skill345 xx* if CNTRY=="DE" [pweight=DWEIGHT] , cl(REGINDICATOR) /* France omitted: no skill observations available */ xi: dprobit ipooreur1 skill345 xx* if CNTRY=="FI" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 skill345 xx* if CNTRY=="IT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 skill345 xx* if CNTRY=="GB" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 skill345 xx* if CNTRY=="SE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 skill345 xx* if CNTRY=="IL" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 skill345 xx* if CNTRY=="ES" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 skill345 xx* if CNTRY=="PT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 skill345 xx* if CNTRY=="GR" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 skill345 xx* if CNTRY=="SI" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 skill345 xx* if CNTRY=="CZ" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 skill345 xx* if CNTRY=="HU" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipooreur1 skill345 xx* if CNTRY=="PL" [pweight=DWEIGHT] , cl(REGINDICATOR) /* Immigration from Richer Outside Europe */ xi: dprobit irichnoeur1 skill345 xx* if CNTRY=="LU" [pweight=DWEIGHT] , robust xi: dprobit irichnoeur1 skill345 xx* if CNTRY=="NO" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 skill345 xx* if CNTRY=="IE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 skill345 xx* if CNTRY=="DK" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 skill345 xx* if CNTRY=="CH" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 skill345 xx* if CNTRY=="AT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 skill345 xx* if CNTRY=="NL" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 skill345 xx* if CNTRY=="BE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 skill345 xx* if CNTRY=="DE" [pweight=DWEIGHT] , cl(REGINDICATOR) /* France omitted: no skill observations available */ xi: dprobit irichnoeur1 skill345 xx* if CNTRY=="FI" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 skill345 xx* if CNTRY=="IT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 skill345 xx* if CNTRY=="GB" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 skill345 xx* if CNTRY=="SE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 skill345 xx* if CNTRY=="IL" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 skill345 xx* if CNTRY=="ES" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 skill345 xx* if CNTRY=="PT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 skill345 xx* if CNTRY=="GR" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 skill345 xx* if CNTRY=="SI" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 skill345 xx* if CNTRY=="CZ" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 skill345 xx* if CNTRY=="HU" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit irichnoeur1 skill345 xx* if CNTRY=="PL" [pweight=DWEIGHT] , cl(REGINDICATOR) /* Immigration from Poorer Outside Europe */ xi: dprobit ipoornoeur1 skill345 xx* if CNTRY=="LU" [pweight=DWEIGHT] , robust xi: dprobit ipoornoeur1 skill345 xx* if CNTRY=="NO" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 skill345 xx* if CNTRY=="IE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 skill345 xx* if CNTRY=="DK" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 skill345 xx* if CNTRY=="CH" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 skill345 xx* if CNTRY=="AT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 skill345 xx* if CNTRY=="NL" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 skill345 xx* if CNTRY=="BE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 skill345 xx* if CNTRY=="DE" [pweight=DWEIGHT] , cl(REGINDICATOR) /* France omitted: no skill observations available */ xi: dprobit ipoornoeur1 skill345 xx* if CNTRY=="FI" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 skill345 xx* if CNTRY=="IT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 skill345 xx* if CNTRY=="GB" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 skill345 xx* if CNTRY=="SE" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 skill345 xx* if CNTRY=="IL" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 skill345 xx* if CNTRY=="ES" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 skill345 xx* if CNTRY=="PT" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 skill345 xx* if CNTRY=="GR" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 skill345 xx* if CNTRY=="SI" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 skill345 xx* if CNTRY=="CZ" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 skill345 xx* if CNTRY=="HU" [pweight=DWEIGHT] , cl(REGINDICATOR) xi: dprobit ipoornoeur1 skill345 xx* if CNTRY=="PL" [pweight=DWEIGHT] , cl(REGINDICATOR) /* Marginal effects for the skill345 variable from all models */ /* are stored in a separate sub-dataset: figure2.dta (available for download on the paper website) */ /* this sub-dataset was used to create Figure 2 */ /* ******************************************************************************************* */ log close log using ReplicationHH2004Table5.log, replace /* ******************************************************************************************* */ /* Table 5 ************************************************************************* */ /* Benchmark model with skill345 and skill dummies 1-5 */ /* High Skill Low Skill Dummy */ /* Immigration from Richer Europe */ xi: dprobit iricheur1 skill345 xx* i.CNTRY [pweight=PDWEIGHT], cl(REGINDICATOR) /* Immigration from Poorer Europe */ xi: dprobit ipooreur1 skill345 xx* i.CNTRY [pweight=PDWEIGHT], cl(REGINDICATOR) /* Immigration from Richer Outside Europe */ xi: dprobit irichnoeur1 skill345 xx* i.CNTRY [pweight=PDWEIGHT], cl(REGINDICATOR) /* Immigration from Poorer Outside Europe */ xi: dprobit ipoornoeur1 skill345 xx* i.CNTRY [pweight=PDWEIGHT], cl(REGINDICATOR) /* Individual Skill Dummies */ /* Immigration from Richer Europe */ xi: dprobit iricheur1 skill2 skill3 skill4 skill5 xx* i.CNTRY [pweight=PDWEIGHT], cl(REGINDICATOR) /* Immigration from Poorer Europe */ xi: dprobit ipooreur1 skill2 skill3 skill4 skill5 xx* i.CNTRY [pweight=PDWEIGHT], cl(REGINDICATOR) /* Immigration from Richer Outside Europe */ xi: dprobit irichnoeur1 skill2 skill3 skill4 skill5 xx* i.CNTRY [pweight=PDWEIGHT], cl(REGINDICATOR) /* Immigration from Poorer Outside Europe */ xi: dprobit ipoornoeur1 skill2 skill3 skill4 skill5 xx* i.CNTRY [pweight=PDWEIGHT], cl(REGINDICATOR) /* ******************************************************************************************* */ log close log using ReplicationHH2004Table6.log, replace /* ******************************************************************************************* */ /* HH2004Table 6 **************************************************************** */ /* Benchmark model with skill345 and skill dummies 1-5 and educational attainment */ /* High Skill Low Skill Dummy and Educational Attainment*/ /* Immigration from Richer Europe */ xi: dprobit iricheur1 eduattain skill345 xx* i.CNTRY [pweight=PDWEIGHT], cl(REGINDICATOR) /* Immigration from Poorer Europe */ xi: dprobit ipooreur1 eduattain skill345 xx* i.CNTRY [pweight=PDWEIGHT], cl(REGINDICATOR) /* Immigration from Richer Outside Europe */ xi: dprobit irichnoeur1 eduattain skill345 xx* i.CNTRY [pweight=PDWEIGHT], cl(REGINDICATOR) /* Immigration from Poorer Outside Europe */ xi: dprobit ipoornoeur1 eduattain skill345 xx* i.CNTRY [pweight=PDWEIGHT], cl(REGINDICATOR) /* Individual Skill Dummies and Educational Attainment*/ /* Immigration from Richer Europe */ xi: dprobit iricheur1 eduattain skill2 skill3 skill4 skill5 xx* i.CNTRY [pweight=PDWEIGHT], cl(REGINDICATOR) /* Immigration from Poorer Europe */ xi: dprobit ipooreur1 eduattain skill2 skill3 skill4 skill5 xx* i.CNTRY [pweight=PDWEIGHT], cl(REGINDICATOR) /* Immigration from Richer Outside Europe */ xi: dprobit irichnoeur1 eduattain skill2 skill3 skill4 skill5 xx* i.CNTRY [pweight=PDWEIGHT], cl(REGINDICATOR) /* Immigration from Poorer Outside Europe */ xi: dprobit ipoornoeur1 eduattain skill2 skill3 skill4 skill5 xx* i.CNTRY [pweight=PDWEIGHT], cl(REGINDICATOR) /* ******************************************************************************************* */ log close log using ReplicationHH2004Table7.log, replace /* ******************************************************************************************* */ /* HH2004Table 7 **************************************************** */ /* Benchmark model with skill345 educational attainment Split samples */ /* Full ESS Sample */ /* Immigration from Richer Europe */ xi: dprobit iricheur1 eduattain skill345 xx* i.CNTRY [pweight=PDWEIGHT], cl(REGINDICATOR) /* Immigration from Poorer Europe */ xi: dprobit ipooreur1 eduattain skill345 xx* i.CNTRY [pweight=PDWEIGHT], cl(REGINDICATOR) /* Immigration from Richer Outside Europe */ xi: dprobit irichnoeur1 eduattain skill345 xx* i.CNTRY [pweight=PDWEIGHT], cl(REGINDICATOR) /* Immigration from Poorer Outside Europe */ xi: dprobit ipoornoeur1 eduattain skill345 xx* i.CNTRY [pweight=PDWEIGHT], cl(REGINDICATOR) /* Currently in the labour market sample */ /* Immigration from Richer Europe */ xi: dprobit iricheur1 eduattain skill345 xx* i.CNTRY if paidwork==1 [pweight=PDWEIGHT], cl(REGINDICATOR) /* Immigration from Poorer Europe */ xi: dprobit ipooreur1 eduattain skill345 xx* i.CNTRY if paidwork==1 [pweight=PDWEIGHT], cl(REGINDICATOR) /* Immigration from Richer Outside Europe */ xi: dprobit irichnoeur1 eduattain skill345 xx* i.CNTRY if paidwork==1 [pweight=PDWEIGHT], cl(REGINDICATOR) /* Immigration from Poorer Outside Europe */ xi: dprobit ipoornoeur1 eduattain skill345 xx* i.CNTRY if paidwork==1 [pweight=PDWEIGHT], cl(REGINDICATOR) /* Currently out of the labour market sample */ /* Immigration from Richer Europe */ xi: dprobit iricheur1 eduattain skill345 xx* i.CNTRY if paidwork==0 [pweight=PDWEIGHT], cl(REGINDICATOR) /* Immigration from Poorer Europe */ xi: dprobit ipooreur1 eduattain skill345 xx* i.CNTRY if paidwork==0 [pweight=PDWEIGHT], cl(REGINDICATOR) /* Immigration from Richer Outside Europe */ xi: dprobit irichnoeur1 eduattain skill345 xx* i.CNTRY if paidwork==0 [pweight=PDWEIGHT], cl(REGINDICATOR) /* Immigration from Poorer Outside Europe */ xi: dprobit ipoornoeur1 eduattain skill345 xx* i.CNTRY if paidwork==0 [pweight=PDWEIGHT], cl(REGINDICATOR) /* ******************************************************************************************* */ log close log using ReplicationHH2004Table8.log, replace /* ******************************************************************************************* */ /* HH2004Table 8 ***************************************************************************** */ /* Baseline model with educational attainment dummies */ /* Immigration from Richer Europe */ xi: dprobit iricheur1 ELEMENTARY HIGHSCHOOL COLLEGE PHD xx* i.CNTRY [pweight=PDWEIGHT], cl(REGINDICATOR) /* Immigration from Poorer Europe */ xi: dprobit ipooreur1 ELEMENTARY HIGHSCHOOL COLLEGE PHD xx* i.CNTRY [pweight=PDWEIGHT], cl(REGINDICATOR) /* Immigration from Richer Outside Europe */ xi: dprobit irichnoeur1 ELEMENTARY HIGHSCHOOL COLLEGE PHD xx* i.CNTRY [pweight=PDWEIGHT], cl(REGINDICATOR) /* Immigration from Poorer Outside Europe */ xi: dprobit ipoornoeur1 ELEMENTARY HIGHSCHOOL COLLEGE PHD xx* i.CNTRY [pweight=PDWEIGHT], cl(REGINDICATOR) /* ******************************************************************************************* */ /* HH2004Table 8.1 (mentioned in text only) ************************************************** */ /* Marginal Effect of Schooling on Immigration Preference in Educational Attainment Subsamples */ /* Immigration from Richer Europe */ /* College Graduates */ xi: dprobit iricheur1 schooling xx* i.CNTRY if COLLEGE==1 [pweight=PDWEIGHT] /* High School Graduates */ xi: dprobit iricheur1 schooling xx* i.CNTRY if HIGHSCHOOL==1 [pweight=PDWEIGHT] /* Immigration from Poorer Europe */ /* College Graduates */ xi: dprobit ipooreur1 schooling xx* i.CNTRY if COLLEGE==1 [pweight=PDWEIGHT] /* High School Graduates */ xi: dprobit ipooreur1 schooling xx* i.CNTRY if HIGHSCHOOL==1 [pweight=PDWEIGHT] /* ******************************************************************************************** */ log close log using ReplicationHH2004Table9.log, replace /* ******************************************************************************************** */ /* HH2004Table 9 *************************************** */ /* Correlations between Education and Cultural Tolerance */ corr eduattain schooling racism crime antihate culture multiculti [aweight=PDWEIGHT] /* ******************************************************************************************** */ log close log using ReplicationHH2004Table10.log, replace /* ******************************************************************************************** */ /* Table 10 ******************************************** */ /* Education, Cultural Tolerance, and Economic Literacy */ /* Effects for Immigration from Poorer European Counries */ /* Immigration from Poorer Europe columns 1-8 */ xi: dprobit ipooreur1 eduattain xx* i.CNTRY [pweight=PDWEIGHT], cl(REGINDICATOR) xi: dprobit ipooreur1 eduattain racism xx* i.CNTRY [pweight=PDWEIGHT], cl(REGINDICATOR) xi: dprobit ipooreur1 eduattain racism crime xx* i.CNTRY [pweight=PDWEIGHT], cl(REGINDICATOR) xi: dprobit ipooreur1 eduattain racism crime antihate xx* i.CNTRY [pweight=PDWEIGHT], cl(REGINDICATOR) xi: dprobit ipooreur1 eduattain racism crime antihate culture xx* i.CNTRY [pweight=PDWEIGHT], cl(REGINDICATOR) xi: dprobit ipooreur1 eduattain racism crime antihate culture multiculti xx* i.CNTRY [pweight=PDWEIGHT], cl(REGINDICATOR) xi: dprobit ipooreur1 eduattain racism crime antihate culture multiculti economy xx* i.CNTRY [pweight=PDWEIGHT], cl(REGINDICATOR) xi: dprobit ipooreur1 eduattain racism crime antihate culture multiculti economy skill345 xx* i.CNTRY [pweight=PDWEIGHT], cl(REGINDICATOR) /* ******************************************************************************************** */ log close /* *************************************************************************************************************************** */ /* Cleaning Up ** */ drop xx*