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 sas and what are the functions? : Sas-administrator
What is the difference between input and infile statement?
How do dates work in SAS data?
If a variable contains only numbers, can it be a character data type?
Where do the database management systems store data and how do u import them.
What would be the result of the following SAS function (given that 31 Dec, 2000 is Sunday)?
What is _n_?
Which is the best training Institute for SAS Business Intelligence course?
my problem is to export my report to xsl.i can do that.but the problem is my report has 3 headings first heading should be printed with the merging of (1-5)cells and heading 2 should be of merge(2-4)cells?how to do this condition?
what is data governance? : Sas-di
Can you calculate the mean, median and mode of the following data set using data step logic? Don't use any function or procedure. data a; input age @@; datalines; 22 32 32 32 43 23 24 56 45 54 28 29 27 26 25 28 30 20 18 37 36 47 46 56 19 20 ; run; I have calculated the mean which i have posted in the answer section.
What does P-value signify about the statistical data?