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 intially documentation in sas?

5024


which date function advances a date, time or datetime value by a given interval? : Sas programming

1025


what is slowly changing dimension? : Sas-di

1108


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

1065


What’s the difference between var b1 – b3 and var b1 — b3?

1338


What is a macro routine?

2696


How does SAS handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, PROCs?

1523


What is proc sort?

1191


In SAS explain which statement does not perform automatic conversions in comparisons?

1293


what is data integration? : Sas-di

1098


Do we follow ADAM in analysis dataset development?How? Usually which version? Why is it necessary?

2391


What is the difference between class statement and by statement in proc means?

1264


Describe the ways in which you can create a macro variable?

1067


What is the role of administrative users? : sas-grid-administration

1062


what techniques and/or procs do you use for tables? : Sas programming

1046