What is LAG function?How is it used? can any one explain
Answer Posted / naveen
this Question was raised by saddi soorath....
lag function enables you to have the previous value.
we have the following data
Name num
Naveen 1
Naveen 2
Basha 1
Basha 2
so in data step
if u give num1 =lag(num) you will have the following result
Name num num1
Naveen 1 .
Naveen 2 1
Basha 1 .
Basha 2 1
Thanks and regards
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is the difference between one to one merge and match merge? Give an example.
Have you ever used the SAS Debugger?
Name and describe few sas character functions that are used for data cleaning in brief.
what is operational data and operational system? : Sas-di
How to test the debugging in sas?
Explain the use of proc print and proc contents?
what is program data vector? : Sas-administrator
How can sas program be validated?
Differentiate input and infile.
What is the basic structure of a sas program?
Assuming {et} is randomly drawn from N(0,1) and e0 = 0, generate 200 observations of xt = et − 0.5e(t−1) and draw a line graph of xt.
What is PDV?
what are 5 ways to perform a table lookup in sas? : Sas-administrator
how would you create multiple observations from a single observation? : Sas programming
For clinical entire study how many tables will create approx?