Announcement

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

  • summary variables help?


    I am trying to get a table of min max and mean for values for a variable ( syscat) which is divided into 4 categories, which was created from a quantitative variable ( systolic)
    I used to be able to type

    table syscat, c(min systolic mean systolic max systolic)

    Now its says I can't do this
    option contents() not allowed since Stata 17; see help table for updated syntax
    The help option has been no help.
    Any ideas?
    Thanks


  • #2
    Code:
    version 16: table syscat, c(min systolic mean systolic max systolic)

    Comment


    • #3
      Lynn:
      welcome to this forum.
      In addition you may want to consider kinda passpartout code:
      Code:
      . use "C:\Program Files\Stata17\ado\base\a\auto.dta"
      (1978 automobile data)
      
      . tabstat price, stat(mean min max)
      
          Variable |      Mean       Min       Max
      -------------+------------------------------
             price |  6165.257      3291     15906
      --------------------------------------------
      
      .
      Kind regards,
      Carlo
      (StataNow 18.5)

      Comment


      • #4
        Thanks for your help. Just a small little thing can make such a big difference.

        Comment

        Working...
        X