WHAT IS LAG FUNCTION ? WHERE CAN YOU IMPLEMENT THIS
FUNCTION?
Answer Posted / 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 |
Post New Answer View All Answers
what is business intelligence? : Sas-bi
in the flow of data step processing, what is the first action in a typical data step? : Sas programming
How would you include common or reuse to be processed along with your statements?
What is the difference between using drop = data set option in data statement and set statement?
How do you define proc in sas? : sas-grid-administration
Hi all, If Anybody has Advance SAS Certification dumps??? Please share with me. Email: pramod.kalugade03@gmail.com
Which command is used to save logs in the external file?
name some data transformation used in sas di? : Sas-di
Briefly explain input and put function?
What do the put and input function do?
What is the difference between SAS functions and procedures?
how to remove duplicates using proc sql?
What is the purpose of _character_ and _numeric_?
Explain the purpose of retain statement.
what is hash files in sas and why we are using this one in sas?