I have a data set with a name variable and a numeric value call it x, I want to create a new variable that will give a string to tell me if the previous 5 data steps that match that name had x > some number. For example:
Name x
Bill 108
Steve 77
Bill 99
Bill 150
Bill 121
Bill 56
Susan 108
Bill...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.