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?How is it used? can any one explain

Answer Posted / naveen

this Question was raised by saddi soorath....

lag function enables you to have the previous value.

we have the following data
Name num
Naveen 1
Naveen 2
Basha 1
Basha 2

so in data step
if u give num1 =lag(num) you will have the following result

Name num num1
Naveen 1 .
Naveen 2 1
Basha 1 .
Basha 2 1

Thanks and regards

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between one to one merge and match merge? Give an example.

1067


Have you ever used the SAS Debugger?

1761


Name and describe few sas character functions that are used for data cleaning in brief.

1123


what is operational data and operational system? : Sas-di

1115


How to test the debugging in sas?

1179


Explain the use of proc print and proc contents?

965


what is program data vector? : Sas-administrator

1077


How can sas program be validated?

1038


Differentiate input and infile.

1106


What is the basic structure of a sas program?

1123


Assuming {et} is randomly drawn from N(0,1) and e0 = 0, generate 200 observations of xt = et − 0.5e(t−1) and draw a line graph of xt.

1881


What is PDV?

1157


what are 5 ways to perform a table lookup in sas? : Sas-administrator

1238


how would you create multiple observations from a single observation? : Sas programming

1008


For clinical entire study how many tables will create approx?

1970