use "C:\Data\BookTables5-2-3Replication.dta", clear *Variable Coding gen dembias=xladd1==1 gen repubbias=xladd1==2 gen demcrit=xladd2==1 gen repubcrit=xladd2==2 gen mediatherm=q3 gen repub=partyid7 recode repub 2=1 3=1 4=1 5=0 6=0 7=0 gen dem=partyid7 recode dem 1=0 2=0 3=0 4=0 5=1 6=1 7=1 gen lib=pppa0015 recode lib 1=1 2=1 3=1 4=1 5=0 6=0 7=0 -1=. gen cons=pppa0015 recode cons 1=0 2=0 3=0 4=1 5=1 6=1 7=1 -1=. gen edhigh=ppeducat recode edhigh 1=0 2=0 3=1 4=1 *Results Reported in Appendix Table 5-2 reg mediatherm dembias repubbias [pweight=weight] reg mediatherm dembias repubbias if xladd2==3 [pweight=weight] reg mediatherm dembias repubbias if demcrit==1 [pweight=weight] reg mediatherm dembias repubbias if repubcrit==1 [pweight=weight] reg mediatherm dembias repubbias if dem==1 & xladd2==3 [pweight=weight] reg mediatherm dembias repubbias if dem==1 & demcrit==1 [pweight=weight] reg mediatherm dembias repubbias if dem==1 & repubcrit==1 [pweight=weight] reg mediatherm dembias repubbias if repub==1 & xladd2==3 [pweight=weight] reg mediatherm dembias repubbias if repub==1 & demcrit==1 [pweight=weight] reg mediatherm dembias repubbias if repub==1 & repubcrit==1 [pweight=weight] *Results Reported in Appendix Table 5-3 reg mediatherm dembias repubbias if dem==1 & lib==1 & edhigh==1 [pweight=weight] reg mediatherm dembias repubbias if dem==1 & lib==1 & edhigh==1 & xladd2==3 [pweight=weight] reg mediatherm dembias repubbias if dem==1 & lib==1 & edhigh==1 & demcrit==1 [pweight=weight] reg mediatherm dembias repubbias if dem==1 & lib==1 & edhigh==1 & repubcrit==1 [pweight=weight] reg mediatherm dembias repubbias if repub==1 & cons==1 & edhigh==1 [pweight=weight] reg mediatherm dembias repubbias if repub==1 & cons==1 & edhigh==1 & xladd2==3 [pweight=weight] reg mediatherm dembias repubbias if repub==1 & cons==1 & edhigh==1 & demcrit==1 [pweight=weight] reg mediatherm dembias repubbias if repub==1 & cons==1 & edhigh==1 & repubcrit==1 [pweight=weight]