Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is business intelligence? : Sas-bi

1014


in the flow of data step processing, what is the first action in a typical data step? : Sas programming

1011


How would you include common or reuse to be processed along with your statements?

2315


What is the difference between using drop = data set option in data statement and set statement?

1104


How do you define proc in sas? : sas-grid-administration

1028


Hi all, If Anybody has Advance SAS Certification dumps??? Please share with me. Email: pramod.kalugade03@gmail.com

1977


Which command is used to save logs in the external file?

1024


name some data transformation used in sas di? : Sas-di

911


Briefly explain input and put function?

1027


What do the put and input function do?

999


What is the difference between SAS functions and procedures?

1095


how to remove duplicates using proc sql?

1088


What is the purpose of _character_ and _numeric_?

1009


Explain the purpose of retain statement.

1003


what is hash files in sas and why we are using this one in sas?

2153