|
|
|
|
|
|
|
|
| |
| |
| |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
| |
|
|
|
|
|
|
| clear all
|
| set more off
|
|
|
| use "$path\data\SurveyStageI_AB_final.dta", clear
|
|
|
| gen prior_below_74=prior<74
|
| gen prior_above_94=prior>94
|
|
|
| tab prior_below_74
|
| tab prior_above_94
|
|
|
| sum prior,d
|
|
|
|
|
| |
|
|
|
|
|
|
| reg timeprior prior1 [pweight=pweight],robust
|
|
|
|
|
| |
| |
|
|
|
|
|
|
| clear all
|
| set more off
|
|
|
| use "$path\data\usa_00025.dta", clear
|
|
|
| keep if year==2016
|
|
|
| keep if age>17&age<66
|
|
|
|
|
| replace incwage=. if incwage==9999999
|
| replace incwage=. if incwage==999999
|
|
|
| gen female=0 if sex!=.
|
| replace female=1 if sex==2
|
|
|
| gen GWG_ACS_45_Bachelormore=.
|
|
|
| gen e_sample=.
|
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
| reg incwage female if age==45&empstat==1&uhrswork==40&educd>=101&classwkr==2 [pweight=perwt], robust
|
| mat beta = e(b)
|
| sca feml = beta[1,1]
|
| disp feml
|
| replace e_sample=0
|
| replace e_sample=1 if e(sample)==1
|
| mean incwage if female==0&age==45&empstat==1&uhrswork==40&educd>=101&classwkr==2 [pweight=perwt]
|
| matrix mean=e(b)
|
| mat list mean
|
| sca const=mean[1,1]
|
| replace GWG_ACS_45_Bachelormore = 1+(feml/const) if educd>=101&age==45&empstat==1&uhrswork==40&classwkr==2
|
|
|
| tab GWG_ACS_45_Bachelormore
|
|
|
|
|
|
|
| tab educd if educd>=101
|
|
|
|
|
|
|
| |
|
|
|
|
|
|
| clear all
|
| set more off
|
|
|
| use "$path\data\usa_00025.dta", clear
|
|
|
| keep if year==2016
|
|
|
| keep if classwkr==2
|
|
|
|
|
| replace incwage=. if incwage==9999999
|
| replace incwage=. if incwage==999999
|
|
|
| gen female=0 if sex!=.
|
| replace female=1 if sex==2
|
|
|
|
|
| gen occ=1 if occ2010>=10&occ2010<=430
|
| replace occ=2 if occ2010>=500&occ2010<=730
|
| replace occ=3 if occ2010>=800&occ2010<=950
|
| replace occ=4 if occ2010>=1000&occ2010<=1240
|
| replace occ=5 if occ2010>=1300&occ2010<=1540
|
| replace occ=6 if occ2010>=1550&occ2010<=1560
|
| replace occ=7 if occ2010>=1600&occ2010<=1980
|
| replace occ=8 if occ2010>=2000&occ2010<=2060
|
| replace occ=9 if occ2010>=2100&occ2010<=2150
|
| replace occ=10 if occ2010>=2200&occ2010<=2550
|
| replace occ=11 if occ2010>=2600&occ2010<=2920
|
| replace occ=12 if occ2010>=3000&occ2010<=3540
|
| replace occ=13 if occ2010>=3600&occ2010<=3650
|
| replace occ=14 if occ2010>=3700&occ2010<=3950
|
| replace occ=15 if occ2010>=4000&occ2010<=4150
|
| replace occ=16 if occ2010>=4200&occ2010<=4250
|
| replace occ=17 if occ2010>=4300&occ2010<=4650
|
| replace occ=18 if occ2010>=4700&occ2010<=4965
|
| replace occ=19 if occ2010>=5000&occ2010<=5940
|
| replace occ=20 if occ2010>=6005&occ2010<=6130
|
| replace occ=21 if occ2010>=6200&occ2010<=6765
|
| replace occ=22 if occ2010>=6800&occ2010<=6940
|
| replace occ=23 if occ2010>=7000&occ2010<=7630
|
| replace occ=24 if occ2010>=7799&occ2010<=8965
|
| replace occ=25 if occ2010>=9000&occ2010<=9750
|
| replace occ=26 if occ2010>=9800&occ2010<=9830
|
|
|
|
|
| keep if age>24&age<66
|
|
|
|
|
| drop if ind1990==0|ind1990==992|ind1990==999
|
|
|
|
|
| replace occ=21 if occ==22
|
| replace occ=2 if occ==3
|
| replace occ=5 if occ==6
|
| replace occ=. if occ==26
|
|
|
| egen occnew= group (occ)
|
|
|
| rename occ occold
|
| rename occnew occ
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| gen GWG_ACS_2565_occ=.
|
| gen e_sample=.
|
|
|
| forvalues i= 1/22 {
|
| disp `i'
|
| reg incwage female if empstat==1&uhrswork==40&classwkr==2&occ==`i' [pweight=perwt], robust
|
| mat beta = e(b)
|
| sca feml = beta[1,1]
|
| disp feml
|
| replace e_sample=0
|
| replace e_sample=1 if e(sample)==1
|
| mean incwage if female==0&empstat==1&uhrswork==40&classwkr==2&occ==`i' [pweight=perwt]
|
| matrix mean=e(b)
|
| mat list mean
|
| sca const=mean[1,1]
|
| replace GWG_ACS_2565_occ = 1+(feml/const) if empstat==1&uhrswork==40&classwkr==2&occ==`i'
|
| replace e_sample=.
|
| }
|
|
|
| _pctile GWG_ACS_2565_occ [pw=perwt], p(10)
|
| return list
|
|
|
|
|
| _pctile GWG_ACS_2565_occ [pw=perwt], p(90)
|
| return list
|
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
|
|
| gen state=""
|
| replace state="Alabama" if statefip==1
|
| replace state="Alaska" if statefip==2
|
| replace state="Arizona" if statefip==4
|
| replace state="Arkansas" if statefip==5
|
| replace state="California" if statefip==6
|
| replace state="Colorado" if statefip==8
|
| replace state="Connecticut" if statefip==9
|
| replace state="Delaware" if statefip==10
|
| replace state="District of Columbia" if statefip==11
|
| replace state="Florida" if statefip==12
|
| replace state="Georgia" if statefip==13
|
| replace state="Hawaii" if statefip==15
|
| replace state="Idaho" if statefip==16
|
| replace state="Illinois" if statefip==17
|
| replace state="Indiana" if statefip==18
|
| replace state="Iowa" if statefip==19
|
| replace state="Kansas" if statefip==20
|
| replace state="Kentucky" if statefip==21
|
| replace state="Louisiana" if statefip==22
|
| replace state="Maine" if statefip==23
|
| replace state="Maryland" if statefip==24
|
| replace state="Massachusetts" if statefip==25
|
| replace state="Michigan" if statefip==26
|
| replace state="Minnesota" if statefip==27
|
| replace state="Mississippi" if statefip==28
|
| replace state="Missouri" if statefip==29
|
| replace state="Montana" if statefip==30
|
| replace state="Nebraska" if statefip==31
|
| replace state="Nevada" if statefip==32
|
| replace state="New Hampshire" if statefip==33
|
| replace state="New Jersey" if statefip==34
|
| replace state="New Mexico" if statefip==35
|
| replace state="New York" if statefip==36
|
| replace state="North Carolina" if statefip==37
|
| replace state="North Dakota" if statefip==38
|
| replace state="Ohio" if statefip==39
|
| replace state="Oklahoma" if statefip==40
|
| replace state="Oregon" if statefip==41
|
| replace state="Pennsylvania" if statefip==42
|
| replace state="Rhode Island" if statefip==44
|
| replace state="South Carolina" if statefip==45
|
| replace state="South Dakota" if statefip==46
|
| replace state="Tennessee" if statefip==47
|
| replace state="Texas" if statefip==48
|
| replace state="Utah" if statefip==49
|
| replace state="Vermont" if statefip==50
|
| replace state="Virginia" if statefip==51
|
| replace state="Washington" if statefip==53
|
| replace state="West Virginia" if statefip==54
|
| replace state="Wisconsin" if statefip==55
|
| replace state="Wyoming" if statefip==56
|
|
|
|
|
|
|
| replace e_sample=.
|
| gen GWG_ACS_2565_state=.
|
|
|
| egen group= group (statefip)
|
| sum group, meanonly
|
|
|
| forvalues i= 1/`r(max)' {
|
| disp `i'
|
| reg incwage female if empstat==1&uhrswork==40&classwkr==2&group==`i' [pweight=perwt], robust
|
| mat beta = e(b)
|
| sca feml = beta[1,1]
|
| disp feml
|
| replace e_sample=0
|
| replace e_sample=1 if e(sample)==1
|
| mean incwage if female==0&empstat==1&uhrswork==40&classwkr==2&group==`i' [pweight=perwt]
|
| matrix mean=e(b)
|
| mat list mean
|
| sca const=mean[1,1]
|
| replace GWG_ACS_2565_state = 1+(feml/const) if empstat==1&uhrswork==40&classwkr==2&group==`i'
|
| replace e_sample=.
|
| }
|
|
|
| _pctile GWG_ACS_2565_state [pw=perwt], p(10)
|
| return list
|
|
|
| _pctile GWG_ACS_2565_state [pw=perwt], p(90)
|
| return list
|
|
|
|
|
|
|
|
|
|
|
| |
| |
| |
|
|
|
|
|
|
| clear all
|
|
|
| use "$path\data\SurveyStageI_AB_final.dta", clear
|
|
|
| global controls wave democrat indep otherpol prior midwest south west anychildren loghhinc associatemore fulltime parttime selfemp unemp student
|
|
|
|
|
| drop if rand==0
|
| keep if age==1
|
|
|
|
|
| eststo: reg z_lmpolicy_index T1 $controls [aweight=pweight] if female==0
|
| eststo: reg z_lmpolicy_index T1 $controls [aweight=pweight] if female==1
|
|
|
| suest est1 est2, vce(robust)
|
| test [est1_mean]T1 = [est2_mean]T1
|
|
|
|
|
|
|
| |
| |
| |
| |
|
|
|
|
|
|
| clear all
|
| set more off
|
|
|
| use "$path\data\SurveyStageI_AB_final.dta", clear
|
|
|
|
|
| keep if rand==0
|
|
|
|
|
|
|
| gen ambitiousagree=ambitiousraw>3 if ambitiousraw!=.
|
| gen talentedagree=talentedraw>3 if talentedraw!=.
|
| gen interestedagree=interestedraw>3 if interestedraw!=.
|
|
|
| tab ambitiousagree
|
| tab talentedagree
|
| tab interestedagree
|
|
|
| gen discriminationagree=discriminationraw>3 if discriminationraw!=.
|
| gen encouragedagree=boysraw>3 if boysraw!=.
|
| gen difficultiesagree=societyraw>3 if societyraw!=.
|
|
|
| tab discriminationagree
|
| tab encouragedagree
|
| tab difficultiesagree
|
|
|
|
|
| |
| |
| |
|
|
|
|
|
|
| clear all
|
| set more off
|
|
|
| use "$path\data\SurveyStageI_AB_final.dta", clear
|
|
|
| |
|
|
|
|
| gen effdisagree=effdisraw>3 if effdisraw!=.
|
| gen effAAagree=effAAraw>3 if effAAraw!=.
|
| gen effworkfamagree=effworkfamraw>3 if effworkfamraw!=.
|
|
|
| tab effdisagree
|
| tab effAAagree
|
| tab effworkfamagree
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|