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

Mention what are the data types does SAS contain?

1109


Why double trailing @@ is used in input statement?

1175


If you were told to create many records from one record, show how you would do this using array and with proc transpose?

1439


what is sas application server? : Sas-di

1028


how many types prompting framework can be broken down to? : Sas-bi

1050


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

980


why a stop statement is needed for the point= option on a set statement?

1034


Explain why double trailing @@ is used in input statement?

1025


explain about sas business intelligence? : Sas-bi

1094


Explain the use of proc print and proc contents?

924


it will become easy if uuu provide website linkssss and list of consultanciessssss

1939


What are the special input delimiters used in SAS?

1123


Explain the purpose of substr functions in sas programming.

1020


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

1093


how can you create zero observation dataset? : Sas programming

1102