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

How would you define the end of a macro?

1097


what are input dataset and output dataset options? : Sas programming

1105


Mention common programming errors committed in sas ?

1128


What is a method for assigning first.VAR and last.VAR to the BY group variable on unsorted data?

2585


Which command is used to perform sorting in sas program?

1048


explain about various caches available in data integrator? : Sas-di

1053


Explain data_null_?

1064


Differentiate between format and informat? : sas-grid-administration

1063


What is the difference between %local and %global? : sas-macro

1189


what are some problems you might encounter in processing missing values? In data steps? Arithmetic? Comparisons? Functions? Classifying data? : Sas programming

1244


What is data _null_?

1145


describe the interaction table in sas di? : Sas-di

1031


How would you code a macro statement to produce information on the sas log? This statement can be coded anywhere? : sas-macro

1049


how do the in= variables improve the capability of a merge? : Sas programming

1436


what is the effect of the options statement errors=1? : Sas programming

1061