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

Re: st: mean and median with multiple measures


From   Kate <[email protected]>
To   [email protected]
Subject   Re: st: mean and median with multiple measures
Date   Wed, 1 Jan 2003 11:18:19 -0800 (PST)

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/



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