Thanks Ada Ma, but I want a sort of weighted mean and
median of the population, not the means and medians
for the individual animals. My mistake--didn't ask
that very well.
Original Message From "Ada Ma"
[email protected]>
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]
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
*
* 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/