Hi,



I’m new to R (just installed today) and I’m trying to figure out how to do
stratified randomisation using it. My google search expedition has lead me
to believe that blockrand package will most probably be the answer to it.



I’ve played around with blockrand for awhile and tried the sample code:



library(blockrand)



##stratified by sex

male <- blockrand(n=100, id.prefix='M', block.prefix='M',stratum='Male')

female <- blockrand(n=100, id.prefix='F', block.prefix='F',stratum='Female')



my.study <- rbind(male,female)

my.mystudy



this generates a beautiful list of randomised list perfect stratified by
sex. However, i cannot figure out how i can add in additional stratification
besides sex. It would be great if someone can point me to the right
direction J



Thanks!

	[[alternative HTML version deleted]]

