Announcement

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

  • how to calculate the median

    hello everyone
    please I need the command of calculating the median
    @Clyde Schechter
    Last edited by ALKEBSEE RADWAN; 11 May 2019, 05:04.

  • #2
    Alkebsee:
    Code:
    . sysuse auto.dta
    (1978 Automobile Data)
    
    . tabstat price, stat(count mean sd p50 min max)
    
        variable |         N      mean        sd       p50       min       max
    -------------+------------------------------------------------------------
           price |        74  6165.257  2949.496    5006.5      3291     15906
    --------------------------------------------------------------------------
    Kind regards,
    Carlo
    (StataNow 18.5)

    Comment


    • #3
      My first advice is: please do read the excerpts of the Stata Manual related to the basic commands. They are free. There is a manual only to help the reader to Get Used to Stata’s commands.

      Rest assured the reward will be exponential.

      One of the introductory commands in Stata is - summarize -, and just adding the option - detail - will provide lots of information concerning the variable, including the median. For example: summarize myvar, detail.
      Best regards,

      Marcos

      Comment


      • #4
        @Carlo Lazzaro. thanks for replying but this command for the mean whereas i wanna the median >
        could you please give me the command of the median ?
        unless the (P50) refers to the median , right?
        Last edited by ALKEBSEE RADWAN; 11 May 2019, 08:32.

        Comment


        • #5
          Yes. The median is the 50th percentile.

          Comment


          • #6
            thanks a lot
            i have another question about psm test could i write it here or should create a new question @

            Comment


            • #7
              Alkebsee:
              you should create a new thread. Thanks.
              Kind regards,
              Carlo
              (StataNow 18.5)

              Comment


              • #8
                ok i got it
                could you please check my new question i just wrote it down?

                Comment

                Working...
                X