BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
MetinBulus
Quartz | Level 8

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? 

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

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

1 REPLY 1
ballardw
Super User

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.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

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