Programming the statistical procedures from SAS

Random selection with unequal probabilities

Accepted Solution Solved
Reply
Contributor
Posts: 43
Accepted Solution

Random selection with unequal probabilities

Hi everyone, I have a question regarding randomly subsetting the data based on predetermined unequal probabilites. Is there any technique or SAS procude that would help me accopmplish this? For example I have a data with 1000 subjects, and subjects are assigned probabilties that varies across individuals. Based on these probailities I would like to randomly select 100 subjects. How would I do this? 


Accepted Solutions
Solution
‎12-04-2015 09:16 PM
Super User
Posts: 10,857

Re: Random selection with unequal probabilities

If I understand what you want, your probabability value could be used as a SIZE parameter in Proc surveyselect and use one of the probability proportionate to size selection methods such as PPS.

View solution in original post


All Replies
Solution
‎12-04-2015 09:16 PM
Super User
Posts: 10,857

Re: Random selection with unequal probabilities

If I understand what you want, your probabability value could be used as a SIZE parameter in Proc surveyselect and use one of the probability proportionate to size selection methods such as PPS.

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 281 views
  • 1 like
  • 2 in conversation