jeudi 20 avril 2017

How to generate random numbers with R for randomized clinical trails?

How would I use R to generate random numbers for a so called randomized clinical trail? Let's asume there are 350 persons and I need to separate them two control- and intervnetion-groups of the same size.

I know simple random number generations in R like that

sample(1:2, 350, replace=TRUE)

But does this have enough entropie to fit the needs of a RCT?

Aucun commentaire:

Enregistrer un commentaire