Date: Fri, 5 Nov 2010 17:11:32 -0400
Reply-To: Nat Wooding <nathani@VERIZON.NET>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Nat Wooding <nathani@VERIZON.NET>
Subject: Re: using data from two data sets
Content-Type: text/plain; charset="US-ASCII"
Well, if memory serves, you are calculating the corrected sums of squares so
why not let Proc Means do it all at once:
input x ;
z= (x - 2.5)**2;
y + z;
Proc Means data = start;
output out = end css=css ;
I threw in the y and z variables so that I could check the result.
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of
Sent: Friday, November 05, 2010 4:38 PM
Subject: using data from two data sets
For illustration, consider two data sets,
temp2 (the mean of x in temp1)
Now I would like to sum all the squares like this:
Apparently we need data from the two different data sets, but I do not want
to combine the two into one.
I just need to do this in one data step, where I can read from the data sets
and do the computation.
Could you help me with this? Thanks.