WHAT IS LAG FUNCTION ? WHERE CAN YOU IMPLEMENT THIS
FUNCTION?
Answers were Sorted based on User's Feedback
Answer / zyin2
Lag() function returns the value of the first previous
observation in a time series. It could be used in Auto
Regression analysis for time series.
For example, Let y be the cloumn name for the original time
series, the analysis for AR(2) could be:
data test;
set test;
m = lag(y);
n = lag(m);
run;
proc reg data = test;
model y = m n;
run;
| Is This Answer Correct ? | 10 Yes | 1 No |
Answer / sai
Lag function can be used if you want to perform
computations across the observations.
| Is This Answer Correct ? | 0 Yes | 0 No |
How to get the repeated values by using sql in sas ?
What are the implications?
Can anyone help to find a statement to get all the predefined formats?
3 Answers Verinon Technology Solutions,
How do you generate random samples?
i have a macro variable var1,var2. i want titles for the each macro variable separately? how it is possible?
Is the physical structure of the data set in the same orientation as the report? Do you need to reshape the data sets? What method should you use to reshape the data–DATA steps,PROC TRANSPOSE,output data set from a procedure?
Briefly describe 5 ways to do a "table lookup" in sas.
How to convert HTML file into SAS dataset?
how to delete the duplicate columns permanently in SQL
Are you involved in writing the inferential analysis plan? Tables specifications?
Give some ways by which you can define the variables to produce the summary report (using proc report)?
Mention some common errors that are usually committed in sas programming.