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 |
what is incremental update ? is this possible in SAS OLAP CUBE STUDIO.
when we are using the PROC TRANSPOSE? OBSERVATIONS are repeated then what will happen and what it will show in log window.
Can anyone help me about SAS Realtime scenarios in Clinical field
is data integration and etl programming is same? : Sas-di
how the sas basic syntax style described? : Sas-administrator
Have you ever used the SAS Debugger?
what is the difference between: x=a+b+c+d; and x=sum (of a, b, c ,d);? : Sas programming
what is the difference between DUPKEY and NODUPKEY???
what is function of retain statment
Explain bmdp procedure?
how many types of prompts are there? : Sas-bi
where will go the observations that were deleted by delete statement?