Announcement

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

  • Outreg2 layout question - How do I create tables so that there is a "line" separating the gender and estimation method used?

    Dear all,

    I am currently examining the effects of alcohol consumption on (weekly) wages. I am interested in the impact for both men and women, and work with panel data. I want to present the results in one regression table, but I have some issues with the lay-out.
    To be more precise, I want to code/create the "yellow lines" (similar to the picture below) and be able to type something above the lines (see red arrows) to separate, in this case, the gender and estimation method used. However, I do not know the STATA code for it. I am using "outreg2" to make my tables.

    Does anyone know how to code both the lines, and be able to write something above the lines, or is that not possible in STATA?

    For males (sex_dv == 1), I ran the code:

    Code:
    xtreg lwwage i.auditc3 dvage c.dvage#c.dvage ethn_dv married health_condition sclfsat2 sclfsat7 i.qfhigh_dv jbstat jbft_dv jbhrs jbot jbttwt finnow jbes2000 jbseg_dv jbnssec_dv jbisco88_cc jbsoc00_cc jbsic07_cc urban i.gor_dv i.year if sex_dv == 1, r
    outreg2 using frequency_male.doc, append ctitle(Human Capital Controls, RE GLS) dec(3) label
    And for females (sex_dv == 2), the code was the following:
    Code:
    xtreg lwwage i.auditc3 dvage c.dvage#c.dvage ethn_dv married health_condition sclfsat2 sclfsat7 i.qfhigh_dv jbstat jbft_dv jbhrs jbot jbttwt finnow jbes2000 jbseg_dv jbnssec_dv jbisco88_cc jbsoc00_cc jbsic07_cc urban i.gor_dv i.year if sex_dv== 2, r
    outreg2 using frequency_female.doc, append ctitle(Human Capital Controls, RE GLS) dec(3) label
    Thanks in advance for your help,

    Luc Nguyen

    (P.S. This happens to be my first post on the forum, so I do apologies if I failed to post sufficient information or missed something. I'd be more than happy to provide more information).
    Click image for larger version

Name:	Pictre 1.PNG
Views:	1
Size:	151.1 KB
ID:	1719662




    Souce: "Feng, W. et al. (2001) “The impact of problem drinking on employment,” Health Economics, 10(6), pp. 509–521.
    Last edited by Luc Nguyen; 07 Jul 2023, 09:14.
Working...
X