|
Dear lister,
I want to randomly flag 1 of a person's observations, if he /she has
multiple obs.
here is the data I have:
ID Var
1 2
1 3
1 .
2 1
2 2
3 1
3 2
3 3
3 4
3 5
output data I want:
ID Var Flag
1 2 1
1 3
1 .
2 1
2 2 1
3 1
3 2
3 3
3 4 1
3 5
Thanks in advance.
Sophia
|