Announcement

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

  • Summarize table including median etc

    Hello,

    I'm working with a dataset and would like to get the descriptive statistics of my variables.
    The items I would like to get are: n, mean, standard deviation, Min, Max, 25th, 75th and median.
    I currently use "sum" but that doesn't give me all the statistics I want.

    Can someone help me out? Thanks in advance.

  • #2
    Britt:
    are you looking for something along the following lines?
    Code:
    . use "C:\Program Files\Stata17\ado\base\a\auto.dta"
    (1978 automobile data)
    
    . tabstat price, stat(N, mean, sd, p25, p50, p75, min, max)
    
        Variable |         N      Mean        SD       p25       p50       p75       Min       Max
    -------------+--------------------------------------------------------------------------------
           price |        74  6165.257  2949.496      4195    5006.5      6342      3291     15906
    ----------------------------------------------------------------------------------------------
    
    .
    Kind regards,
    Carlo
    (Stata 19.0)

    Comment


    • #3
      Yes Carlo, thank you so much!

      Comment

      Working...
      X