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.

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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