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 to import HTML files into SAS datasets?
Can you excute a macro within a macro? Describe.
how do u identify a macro variable
What are common programming errors committed in sas
%STPbegin;%STPEND; ERROR: No logical assign for filename _WEBOUT. WARNING: No body file. HTML output will not be created. unable to fix it.plz help
if a program has some 1000 or more line and how to know whether the syntax of the particular code is correct without checking it manually
How do I CREATE an external dataset with sas code? I would like to create within a sascode a non-exsistent textfile on the host. So I am not forced to create the file befor filling it.
Differentiate between format and informat? : sas-grid-administration
How will you generate test data with no input data?
is it possible to generate sas datasets using proc print ???
1 Answers GSK GlaxoSmithKline,
what is _error_?
2 Answers Axis Bank, Cognizant, JPMorgan Chase,
Mention common programming errors committed in sas ?