Announcement

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

  • Formatting a 3-way Stata table like a SAS table

    Hi Statalist,

    I would like to have my 3-way Stata table here:

    Click image for larger version

Name:	Stata table.PNG
Views:	1
Size:	15.6 KB
ID:	1575425


    Be formatted in a similar way to this SAS table:
    Click image for larger version

Name:	SAS table.PNG
Views:	1
Size:	14.4 KB
ID:	1575426


    The actual output seen here isn't important. I essentially just want to know if it's possible to format the Stata table above like the one in SAS displayed below.

  • #2
    I think -contract- offers more or less what you want, although I wouldn't be sure the cumulation is done in the order you want.
    Code:
    perserve
    contract industry race union,  freq(freq) cfreq(cumfreq) percent(pct) cpercent(cumpct)
    list, nolabel
    restore

    Comment


    • #3
      Cross-posted and answered at https://stackoverflow.com/questions/...a-table-in-sas

      Please note our policy on cross-posting which is that you are asked to tell us about it. https://www.statalist.org/forums/help#crossposting

      Comment

      Working...
      X