Sorry, that is a stupid bug in the blockrand function.  I will hunt down the 
author and slap him upside the head until he fixes it (actually I will probably 
just raid his freezer and eat his ice cream).

In the mean time there is a simple work around, if you run blockrand like:

> blockrand(40, block.sizes=c(4,4))

Then it will force all the block sizes to be 8.

Look for a new version of blockrand on CRAN soon with this fixed.

________________________________________
From: r-help-boun...@r-project.org [r-help-boun...@r-project.org] On Behalf Of 
Ayesha [ayesha.diamond...@gmail.com]
Sent: Thursday, January 28, 2010 8:06 PM
To: r-help@r-project.org
Subject: Re: [R] random permuted block randomization

I have tried blockrand but it works in a way that it keeps altering the block
size.. like it alternates between 8,6,12. I want a constant block size of 8
:(
--
View this message in context: 
http://n4.nabble.com/random-permuted-block-randomization-tp1401407p1401496.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
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.

Reply via email to