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 intially documentation in sas?
which date function advances a date, time or datetime value by a given interval? : Sas programming
what is slowly changing dimension? : Sas-di
How do you define proc in sas? : sas-grid-administration
What’s the difference between var b1 – b3 and var b1 — b3?
What is a macro routine?
How does SAS handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, PROCs?
What is proc sort?
In SAS explain which statement does not perform automatic conversions in comparisons?
what is data integration? : Sas-di
Do we follow ADAM in analysis dataset development?How? Usually which version? Why is it necessary?
What is the difference between class statement and by statement in proc means?
Describe the ways in which you can create a macro variable?
What is the role of administrative users? : sas-grid-administration
what techniques and/or procs do you use for tables? : Sas programming