Announcement

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

  • Publication style Summary Statistics with dtable - adding means and p-values

    Dear all,

    I use Stata18 on Windows.
    for my thesis project I would like to generate a publication style summary statistic (aka Table 1). I've made good progress with the dtable command but could not figure out how to include means and p-value asteriks. Additonally, I would like to include sub-titles in cursive writing for the dependent and independent variable, as well as change the column above and put the treatment group into the front column.
    Ideally, I would like my table to look something like this:

    Click image for larger version

Name:	Summary.png
Views:	1
Size:	60.6 KB
ID:	1752454
    with the code: dtable erwerbstätig ArbeitH FreizeitH Alter i.Education i.partner duration_cohab child_0_2 child_3_5 child15 taxsplit if sex == 2 & post_reform == 0, by(treatment, nototals) factor(i.Education i.partner, statistics(fvrawproportion)) continuous(, statistic(mean sd)) nosample title(Women) nformat(%16.2fc mean sd) export("table1", as(docx) replace) column(by(hide)) I got pretty close.

    Click image for larger version

Name:	Summary.png
Views:	1
Size:	42.0 KB
ID:	1752455
    Any tips will be much appreciated!

    Thanks in Advance
Working...
X