LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (April 2008, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Fri, 11 Apr 2008 14:03:42 -0400
Reply-To:   Sophia Tong <sophidt@HOTMAIL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Sophia Tong <sophidt@HOTMAIL.COM>
Subject:   How to randomly flag 1 entry if a person have multiple?

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


Back to: Top of message | Previous page | Main SAS-L page