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 could you generate test data with no input data?
hi tell be about pfizer? how to compare the work with other companies ? please tell me how to login and work also?
What is the command used to find missing values?
What does P-value signify about the statistical data?
What is the difference between verification and validation?
What are the statements in proc sql?
How to sort in descending order?
how can you import .csv file in to sas? : Sas programming
Have you used macros? For what purpose you have used? : sas-macro
One way of creating a new variable in Macros is by % Let....What is the other way..?
What is the order of evaluation of the comparison operators: + - * /** ()?
how to get second highest salary from a employee table and how get a 5th highest salary from a employee table?