Date: Thu, 4 Mar 2004 20:23:31 +0300
Reply-To: Peter <murderx@MAIL333.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Peter <murderx@MAIL333.COM>
Organization: Golden Telecom
Subject: Variable creation
Content-Type: text/plain; charset="US-ASCII"
Hi all!
I have the following problem. There is a SAS dataset with one numeric
vaiable X and "n" observations . Want to create variable Y, where the
i-th observation of Y equal to the product of all previous observations
of X. In other words: Y1=X1, Yi=Y(i-1)*Xi for i=2,3...,n. How can I make
it by the means of SAS.
Thanks in advance.
Peter.
|