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 |
Have you ever linked SAS code, If so, describe the link and any required statements used to either process the code or the step itself?
what is the difference between x=substr(name,1,2); and substr(name,1,2)='x';
what is program data vector? : Sas-administrator
What are common programming errors committed in sas
What Proc glm does?
What is interleaving in SAS?
Baseline definition in your study
3 Answers Accenture, Quintiles,
How to test the debugging in sas?
please can you tell me that in companies sas work are doing by through sas coding or sas wizard ??
What is the difference between an informat and a format. Name three informats or formats.
what are the sites did u refer for enquiries and doubts for SAS
Are you involved in writing the inferential analysis plan? Tables specfications?