Posted By

sarathannapareddy on 05/11/10


Tagged

records number random seed proc Datasets Surveyselect sampling RANUNI Shuffling


Versions (?)

Random Sample Selection


 / Published in: SAS
 

URL: http://studysas.blogspot.com/2010/05/random-sample-selection.html

Last week my manager asked me to randomly pick 10%observations from a large data set and then create a listing so that the Data management programmers can QC the data. I want to share some thoughts here … how easy and simple to do random sampling. Approach 1:

Data step Approach: In this approach, the observations are shuffled using the RANUNI function which assigns a random number to each observation.

  1. Last week my manager asked me to randomly pick 10%observations from a large data set and then create a listing so that the Data management programmers can QC the data. I want to share some thoughts here … how easy and simple to do random sampling.
  2. Approach 1:
  3.  
  4. Data step Approach: In this approach, the observations are shuffled using the RANUNI function which assigns a random number to each observation.

Report this snippet  

You need to login to post a comment.