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 (March 2002, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 7 Mar 2002 09:12:07 -0800
Reply-To:   Cassell.David@EPAMAIL.EPA.GOV
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "David L. Cassell" <Cassell.David@EPAMAIL.EPA.GOV>
Subject:   Re: Sample
Content-type:   text/plain; charset=us-ascii

Sankhla Shakti <shaktisankhla@YAHOO.COM> wrote: > I have a database of more than 5000 observations. From > this I want to pick a random sample of 200 > observations. I also want to fulfill a condition that > say 150 observations are type A of variable X and rest > are type B of variable X. Please guide.

You have already received code to do this. But, if you have version 8 and the SAS/STAT module, you can achieve this easier using PROC SURVEYSELECT .

David -- David Cassell, CSC Cassell.David@epa.gov Senior computing specialist mathematical statistician


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