Announcement

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

  • Obtaining mean and SD from survey data

    Hello,

    I am trying to get the differences in the length of stay(LOS) in subpopulation of myocarditis, categorized by whether they have arrhythmia or not (Tarry or not). I get mean and standard error. I would like to get mean and standard deviation. How would I be able to get that? Thanks.

    This is what I did and what I got.
    . svy linearized, subpop(myocarditis) : mean LOS, over(Tarry)


    0: Tarry = 0

    1: Tarry = 1



    --------------------------------------------------------------

    | Linearized

    Over | Mean Std. Err. [95% Conf. Interval]

    -------------+------------------------------------------------

    LOS |

    0 | 8.035982 .3003205 7.447308 8.624657

    1 | 15.02443 1.001127 13.06207 16.98679

    --------------------------------------------------------------

  • #2
    After svy: mean, run:
    Code:
    estat sd

    Comment


    • #3
      Thank you very much. It worked.
      How can I get median and interquartile range for this analysis? How reliable will the output be for survey analysis?
      Thank you for your time.

      Comment


      • #4
        You may wish to read this FAQ: https://www.stata.com/support/faqs/s...r-survey-data/
        Best regards,

        Marcos

        Comment


        • #5
          Thanks Marcos, I will take a look.

          Comment

          Working...
          X