Hi Statalist
For some individuals in my dataset I have multiple observations for a date of visit (visitdate). These are listed as this in my dataset:
Date of visit
ID: 1 15.05.10
ID: 1 19.07.10
ID: 1 23.09.10
ID: 2 15.05.08
ID: 3 03.05.10
ID: 3 01.06.10
I would like these to be encoded as visit1, visit2... so there is just one ID row for each individual.
Is this possible? There are a lot more variables for each ID (numerics and strings) but I only want to transfer the visit dates.
For some individuals in my dataset I have multiple observations for a date of visit (visitdate). These are listed as this in my dataset:
Date of visit
ID: 1 15.05.10
ID: 1 19.07.10
ID: 1 23.09.10
ID: 2 15.05.08
ID: 3 03.05.10
ID: 3 01.06.10
I would like these to be encoded as visit1, visit2... so there is just one ID row for each individual.
Is this possible? There are a lot more variables for each ID (numerics and strings) but I only want to transfer the visit dates.

Comment