Hello, I have the following case:
subject id dtvisit rank_dtvisit
1 1/2/2003
1 2/3/2006
1 2/4/2007
1 3/9/2011
1 9/12/2019
2 5/6/2018
2 6/2/2018
2 12/12/2018
3 12/11/2017
3 12/22/2018
is it possible to rank the dates in a way to obtain (for subject 1, for example) the earliest date ranked as 1 and the latest ranked as 5... and so on for all other subjects. Thank you very much for your help.