WHAT IS LAG FUNCTION ? WHERE CAN YOU IMPLEMENT THIS
FUNCTION?

Answers were Sorted based on User's Feedback



WHAT IS LAG FUNCTION ? WHERE CAN YOU IMPLEMENT THIS FUNCTION?..

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

WHAT IS LAG FUNCTION ? WHERE CAN YOU IMPLEMENT THIS FUNCTION?..

Answer / hari

Returns values from the queues

Is This Answer Correct ?    3 Yes 3 No

WHAT IS LAG FUNCTION ? WHERE CAN YOU IMPLEMENT THIS FUNCTION?..

Answer / sai

Lag function can be used if you want to perform
computations across the observations.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SAS Interview Questions

what is portability of sas programmes?

2 Answers   Capital One,


what are some good sas programming practices for processing very large data sets? : Sas programming

0 Answers  


wat has been most common programming mistake?

3 Answers  


how to debug and test the sas program? : Sas-administrator

0 Answers  


if you have 365 no of data set and each one having different variable from each other. how will you read by creating macros and create a single data set.

2 Answers  


where are dashboard components are created and maintained? : Sas-bi

0 Answers  


State the difference between INFORMAT and FORMAT ?

0 Answers  


In the following DATA step, what is needed for ‘fraction’ to print to the log? data _null_; x=1/3; if x=.3333 then put ‘fraction’; run;

1 Answers  


What is the order of application for output data set options, input data set options and SAS statements?

0 Answers   Quintiles,


is data integration and etl programming is same? : Sas-di

0 Answers  


Does anybody has lastest SAS certification dumps,if anybody has please mail me at akshara_SAS@ymail.com Thanks Akshara

55 Answers  


What procedure you used to calculate p-value?

2 Answers   Accenture, Quintiles,


Categories