Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: mean and median with multiple measures


From   "Ada Ma" <[email protected]>
To   <[email protected]>
Subject   st: Re: mean and median with multiple measures
Date   Wed, 1 Jan 2003 15:30:59 -0000

Kate wrote:
> I have about 200 measures of creatinine but they are
> from only 25 animals. How do I calculate the mean and
> the median creatinine values in Stata?


Use the -collapse- command, e.g.:
collapse creatinine, by(animal)

and save them inside a different data file.

Alternatively you can use the -egen- command to generate new mean variables.

Ada Ma
[email protected]

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index