BookmarkSubscribeRSS Feed
shridula95
Calcite | Level 5

Hello

I am trying to run a simulation, based on 1000 replications, with sample size=50 for the imbalance (Dn)  and predictability of a sequence (Ppred) in Clinical Studies Design. Some of the randomization procedures for which the simulation has to be run are 1)Complete Randomization 2)Permuted block design, with block size=4, etc.

Any help with how to write the SAS code for these simulation procedures is highly appreciated!

2 REPLIES 2
Rick_SAS
SAS Super FREQ

Is this for a course? What have you learned so far about how to generate a random design?

 

You can use the GROUPS= option in PROC SURVEYSELECT to randomly assign subjects to groups. (Placebo, treatment1, treatment2, etc.) See this note.

For more advanced designs, you might look at PROC PLAN.

shridula95
Calcite | Level 5

Thank you, I will check out these links. 

Yes, It is for a course I am taking. So far I've learnt how to use the ranuni function to generate a random list and also how to set a seed/call a seed for generating random numbers.

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


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
  • 2 replies
  • 727 views
  • 0 likes
  • 2 in conversation