What is LAG function?How is it used? can any one explain

Answer Posted / sheetal

lag function is used to look at the previous values as :

lag(<varaiable name>); gives you the the previous value .

Is This Answer Correct ?    15 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

619


How you are maintaining sas programmes in your company...any specific version control software you are using? If so, tell me the name?

1578


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

613


Name few SAS functions?

668


what are sas/access and sas/connect? : Sas programming

546






What are the data types in sas?

606


Give e an example of..

1843


Mention how to limit decimal places for the variable using proc means?

641


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

589


how we can create a FLAG datasets? Ex:-ID age_group no_persons 1 to 10 10 to 20 3 11 to 20 21 to 30 7 21 to 3o 31 to 40 5

1655


is data integration and etl programming is same? : Sas-di

574


What is a macro routine?

2101


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

583


I have a dataset concat having variable a b & c. How to rename a b to e & f?

580


What is PROC in SAS?

604