Date: Sat, 12 Aug 2006 23:53:31 -0400
Reply-To: Wensui Liu <liuwensui@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Wensui Liu <liuwensui@GMAIL.COM>
Subject: Re: Difference in using proc tabulate and proc mean to compute
median?
In-Reply-To: <1155440675.793636.146590@p79g2000cwp.googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
you should not use proc tabulate to find median, which is mainly for
data display purpose.
correct way sould be proc mean or proc summary.
On 8/12/06, xxu8810152@gmail.com <xxu8810152@gmail.com> wrote:
> Hello,
>
> I have a large number of data and need to find the median.
> I tried proc tabulate and received a WARNING: A shortage of memory has
> caused the quantile computations to terminate prematurely ...
> However, when I used proc mean to compute the median it can complete
> without problems. So I guess my questions are 1) why proc tabulate
> gives a warning while proc mean is ok, 2) if both proc works, do they
> give the same result?
>
> Thank you!
>
--
WenSui Liu
(http://spaces.msn.com/statcompute/blog)
Senior Decision Support Analyst
Health Policy and Clinical Effectiveness
Cincinnati Children Hospital Medical Center
|