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

Compare sas with other data analytics tools.

593


Explain the difference between nodup and nodupkey options?

617


how sas deals with business intelligence? : Sas-bi

591


Mention common programming errors committed in sas ?

660


How do you test for missing values?

1065






What do the SAS log messages "numeric values have been converted to character" mean?

899


Why double trailing @@ is used in input statement?

717


How would you identify a macro variable? : sas-macro

544


how can you create zero observation dataset? : Sas programming

649


What are the 3 components in sas programming?

742


What do you know about sas and what we do? : sas-grid-administration

612


How many ways to overcome a missing values???

2344


how will you locate the sas platform applications? : Sas-bi

590


please can you tell me that in companies sas work are doing by through sas coding or sas wizard ??

1673


What is the purpose of trailing @ and @@? How do you use them?

619