Announcement

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

  • ESTTAB and Bivariate Regression Table

    Hello,

    I am running a series of bivariate regression models. I want to be able to combine the individual estimates into one table using <esttab> command.

    I expect an output that list the variables in the first column, and the coefficients/odds ratios and their CIs in the second column.

    My code below runs the regression tables, but the output is not what I expect. It gives me a matrix of results.


    Code:
    local vars v012_agegrp3 v501_marital_stat_r  religion v025_urbanrural ///
    v106_education_r v731_emp v190_wealthquintiles ///
    v602_fertil_pref_recode_r  knowaids mcreject v505_number_wives_r  ///
    v766b_numbpart_spouse_r sexpartners_lifetime std_ulcer_discarge ///
    HIVStigma_Anticipate HIVStigma_SocDistance
    
    foreach x of local vars {
        qui eststo `x': svy, subpop (male if hivstatusoutcome==1) or: melogit condomless_spouse  `x' || psupool:  
    }
    
    esttab _all, b(4) se(4) nogap eform(0 1)


    I am wondering if there is any way to edit the code to give me the desired results.

    Thanks in advance for your assistance.

    cheers, cY




Working...
X