Date: Thu, 15 Oct 1998 16:19:26 -0700
Reply-To: "Self, Karsten" <kself@VISA.COM>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: "Self, Karsten" <kself@VISA.COM>
Subject: Re: [Q] Sum of Unequal Sample Size
Content-Type: text/plain
assuming data FOO:
proc sql;
create table result as select distinct sum(x), y
from foo
group by y
;
quit;
--
Karsten M. Self (kself@visa.com)
Trilogy Consulting
What part of "Gestalt" don't you understand?
> ----------
> From: chwu@UNLGRAD1.UNL.EDU[SMTP:chwu@UNLGRAD1.UNL.EDU]
> Sent: Thursday, October 15, 1998 8:24 AM
> To: SAS-L@UGA.CC.UGA.EDU
> Subject: [Q] Sum of Unequal Sample Size
>
> 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
>
>
> --
>
|