|Date: ||Thu, 21 Jan 2010 15:22:51 -0500|
|Reply-To: ||Gerhard Hellriegel <gerhard.hellriegel@T-ONLINE.DE>|
|Sender: ||"SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>|
|From: ||Gerhard Hellriegel <gerhard.hellriegel@T-ONLINE.DE>|
|Subject: ||Re: Lag function-quarterly data|
I don't understand what you want to do. In your example the LAG of any
data is very useless, because it is missing for all.
Some more example obs and the result which you expect to see might help!
I assume that you have more than one obs, how many? Background: why think
about the most efficient way for 100 obs, simply use the LAG-function. For
10 million obs there might be a way to make it faster.
On Thu, 21 Jan 2010 13:07:03 -0500, SAS user <sasuser4@GOOGLEMAIL.COM>
>I would like to compute the lag of a couple of variables using quarterly
>data. Could you please suggest which is the most efficient way to do this?
>ID YQUARTER VARIABLE1 VARIABLE2
>020012 2000Q1 230 123