Hi all,
Im using the heckman method to impute wages for homemakers in my sample. I have 416 employed women and 422 homemakers in my sample.
Is there a way to get stata to output the wage and selection model results both in stata?I get the final results but not the first two sets.This is the code I use.
global lsmodel="shareexbymale ln_pc_hhexpense ln_pc_hhexpense_sqrd "
global dem1=" age age_square"
global education="second_education olevel advancedlevel degree"
global metgoals="goals_homemaker goals_both"
global perceptions=" whtwifesuddo_cadinal relwzchldrn_cadinal wrktorolemodel_cadinal "
global HHcharac="debt ownfamhouse tot_child_lessthan5 tot_child_5n11 tot_child_12n16 relwzcare motherliv_wzu hvdomestics adultwomentotalwzoutself shreofwhite"
global spatail="rural"
global overallhappy= "overallhappy"
global ln_wage= "ln_wage"
heckman ln_wage ///
$dem1 ///
$education ///
$spatail ///
if empld==1, select(age age_square second_education olevel advancedlevel degree rural)
eststo table1h
estout table1h, cells(b(star fmt(%9.4f)) se(par fmt(%9.4f))) stats(r2 N, fmt(%9.0f %9.0g)) ///
margin legend starlevels(* 0.10 ** 0.05 *** 0.01) prefoot("") postfoot("") ///
varwidth(16) modelwidth(12) delimiter("") r
esttab table1h using heckwage.csv, b(4) se(3) margin legend starlevels (* 0.10 ** 0.05 *** 0.01) prefoot("") postfoot("") ///
varwidth(16) modelwidth(12) delimiter("") r wide
predict heckwage1
Thanks
ASP
Im using the heckman method to impute wages for homemakers in my sample. I have 416 employed women and 422 homemakers in my sample.
Is there a way to get stata to output the wage and selection model results both in stata?I get the final results but not the first two sets.This is the code I use.
global lsmodel="shareexbymale ln_pc_hhexpense ln_pc_hhexpense_sqrd "
global dem1=" age age_square"
global education="second_education olevel advancedlevel degree"
global metgoals="goals_homemaker goals_both"
global perceptions=" whtwifesuddo_cadinal relwzchldrn_cadinal wrktorolemodel_cadinal "
global HHcharac="debt ownfamhouse tot_child_lessthan5 tot_child_5n11 tot_child_12n16 relwzcare motherliv_wzu hvdomestics adultwomentotalwzoutself shreofwhite"
global spatail="rural"
global overallhappy= "overallhappy"
global ln_wage= "ln_wage"
heckman ln_wage ///
$dem1 ///
$education ///
$spatail ///
if empld==1, select(age age_square second_education olevel advancedlevel degree rural)
eststo table1h
estout table1h, cells(b(star fmt(%9.4f)) se(par fmt(%9.4f))) stats(r2 N, fmt(%9.0f %9.0g)) ///
margin legend starlevels(* 0.10 ** 0.05 *** 0.01) prefoot("") postfoot("") ///
varwidth(16) modelwidth(12) delimiter("") r
esttab table1h using heckwage.csv, b(4) se(3) margin legend starlevels (* 0.10 ** 0.05 *** 0.01) prefoot("") postfoot("") ///
varwidth(16) modelwidth(12) delimiter("") r wide
predict heckwage1
Thanks
ASP
Comment