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 maximum number of rows and cols can be handled in SAS?

1668


what is data access? : Sas-di

1176


What would be the value of month at the end of data step execution and how many observations would be there?

1224


What is the differnce between SDTM 3.1.2 to 3.1.1 version

5113


What are the data types that sas contain?

1244


Which date function advances a date, time or datetime value by a given interval?

1192


What are the limitations for memory allocation for SAS variables

1541


Why double trailing @@ is used in input statement?

1263


how are numeric and character missing values represented internally? : Sas programming

1194


what is the use of sas management console? : Sas-di

1137


Explain what is the use of proc gplot?

1245


What is program data vector (pdv) and what are its functions?

1312


How sas treats the dsd delimiters?

1259


How long can a macro variable be? A token? : sas-macro

1252


what are the best practices to process the large data sets in sas programming? : Sas-administrator

1070