[R] Multistratum blocking in AlgDesign

Marc Moragues mmoragues at fulbrightmail.org
Fri Apr 3 02:30:32 CEST 2015


Hi all,

I need to design an experiment very similar to the design described in
the AlgDesign vignette on page 44.  When I run the code on the vignette,
I get the following error:

> library(AlgDesign)
> Rep<-gen.factorial(3,1,factor=1,varName="Rep")
> Block<-gen.factorial(3,1,factor=1,varName="Block")
> firstDesign<-optBlock(~.,within=Block,whole=Rep,blocks=rep(3,3))
Error in optBlock(~., within = Block, whole = Rep, blocks = rep(3,
3)) : 
  All variables seem to be block variables

This is my sessionInfo()
R version 3.1.1 (2014-07-10)
Platform: x86_64-pc-linux-gnu (64-bit)

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods
base     

other attached packages:
[1] AlgDesign_1.1-7.3

loaded via a namespace (and not attached):
[1] compiler_3.1.1 tools_3.1.1  

I searched this error on rseek.org and the archives and found nothing
that was helpful.

Any help would be appreciated.
Marc.



More information about the R-help mailing list