Hello,
I am using Stata 17 and I want to compare regression coefficients between two samples (males and females), i.e. test the Ho that betas are equal. I'm using estimate store, suest, test but I'm unclear how to export test results.
Is there a way to "append" test results to outreg2?
Any help would be appreciated! Thanks so much.
I am using Stata 17 and I want to compare regression coefficients between two samples (males and females), i.e. test the Ho that betas are equal. I'm using estimate store, suest, test but I'm unclear how to export test results.
Is there a way to "append" test results to outreg2?
Any help would be appreciated! Thanks so much.
Code:
svyset [pweight=fsweight]
local indepvar "i.x1_cat i.x2_cat x3 x4"
svy: probit y `indepvar' //trying to use svy when I use pweights + suest I get an error message saying I should iweights
outreg2 using ${output}\reg_extint.xls", bdec(3) se bracket symb(***,**,*) ///
ctitle(pooled) label(insert) excel replace
svy: probit y `indepvar' if childsex == 1 //Female
outreg2 using "${output}\reg_extint.xls", bdec(3) se bracket symb(***,**,*) ///
ctitle(model female) label(insert) excel append
est store MF
svy: probit careww `independent' if childsex == 0 //Male
outreg2 using "${output}\reg_extint.xls", bdec(3) se bracket symb(***,**,*) ///
ctitle(Model male) label(insert) excel append
est store MM
suest MF MM
test [MF_y=MM_y]

Comment