Date: Fri, 16 Oct 1998 10:42:06 -0400
Reply-To: "HOANG, DUC D" <duc.hoang@BELLSYGMA.COM>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: "HOANG, DUC D" <duc.hoang@BELLSYGMA.COM>
Organization: Bell Canada / Bell Sygma
Subject: Re: [Q] Sum of Unequal Sample Size
Content-Type: text/plain; charset=us-ascii
Another solution:
PROC SUMMARY DATA=A;
BY Y;
VAR X;
OUTPUT OUT=A(DROP=_TYPE_ _FREQ_) SUM=;
chwu@unlgrad1.unl.edu wrote:
>
> Is there any easy way to make a summation for unequal sample size? For
> example,
>
> X Y X Y
> ---- ------
> 15 1 ====> 41 1
> 26 1 10 2
> 10 2 176 3
> 50 3
> 30 3
> 70 3
> 26 3
>
> --
******************************************************************
Duc Hoang, Consultant, CGI (HR)
625 Belmont Street, 3rd Floor, Montreal, Quebec, H3B 2M1
Phone: 514-870-2746 Fax: 514-870-9892
Internet: duc.hoang@bellsygma.com
|