Hi, You may try: library(psych) ?block.random() Also, look this link http://personality-project.org/revelle/syllabi/205/block.randomization.pdf A.K.
----- Original Message ----- From: mina orang <minaor...@gmail.com> To: r-help@r-project.org Cc: Sent: Friday, July 26, 2013 4:26 AM Subject: [R] a very urgunt and important question about R Dear all I am doing a research in clinical psychology and I need to Generate a block randomization for a clinical trial, with two treatments and three therapists. I mean I must randomize the clients (all women) to two kinds of treatment (called "treatment as usual" and "narrative exposure therapy") and three different therapists. I tried to do this randomization by using R software and by using stratification package but I didn't (and still can not) understand how I should use R for this job. Could you please help me and show me how I should use R for this kind of randomization in a really easy way? I really appreciate your help in advance. Best Mina P.S. I just know little about statistics and software. Please teach me in a really easy way. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.