emitanaka / edibble

An R-package that encapsulate elements of experimental design for better planning, management, and workflow
https://edibble.emitanaka.org
Other
215 stars 14 forks source link

randomisation doesn't work for unbalanced nesting #22

Closed emitanaka closed 2 years ago

emitanaka commented 3 years ago

dae::designRandomize doesn't seem to support the case where nesting is unbalanced.

I end up getting the below error.

Error in designRandomize(allocated = trts_df, recipient = units_nesting_df,  : 
  The product of the numbers of levels of the recipient factors must equal the length of the allocated factors.
emitanaka commented 2 years ago

Changed the way that randomisation is done and consequently this should be fixed now