Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Comparing regression coefficients between two sub-samples using estimate store, suest, test - how to export test results?

    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.

    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]

  • #2
    Elena:
    have you taken a look at -table- suite in Stata .pdf manual?
    Kind regards,
    Carlo
    (Stata 19.0)

    Comment


    • #3
      Thanks Carlo!

      I was hoping to find a 'quicker' way and still use outreg2 given that's what I used for my regressions.

      Comment


      • #4
        You need some matrix manipulation. Use margins in place of test after suest. An example here: https://www.statalist.org/forums/for...ression-models

        Comment

        Working...
        X