I have a dataset in which two variables are being counted:
- varA, with values A, B, C... (subject id)
- varB, with values 1, 2, 3... (visit type identifier, where visit #1 is screening visit, and #2, #3 and after are interview visits)
Some subjects will decline participation at the screening visit, and therefore have only a record where varB==1, but no varB==2.
I wish to count the number of subjects who did not have any visits after the screening visit.
- varA, with values A, B, C... (subject id)
- varB, with values 1, 2, 3... (visit type identifier, where visit #1 is screening visit, and #2, #3 and after are interview visits)
Some subjects will decline participation at the screening visit, and therefore have only a record where varB==1, but no varB==2.
I wish to count the number of subjects who did not have any visits after the screening visit.
Comment