Thanks for the comments.
I think i phrased my question incorrectly but the following gave me what I
wanted. 18 treatments(plants) , 3 blocks, a total of 54 plots. I could not
figure out exac
library(agricolae)
trt-
c(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18)
design.rcbd(trt, 3, serie = 2,
I guessed you mean 2 treatment groups, N=18 and 3 blocks (so n=6 per block):
blocks - 3
ngroups - 2
groupsize - 3
group - NULL;
block - NULL;
set.seed(911)
for (i in 1:blocks){
foo - sample(rep(c('A', 'B'), groupsize))
group - c(group, foo)
block - c(block, rep(i, groupsize*ngroups))
Good Morning,
I would like help with code that creates a RBD experiment. That is I have 18
treatments and I will need three blocks. I cannot seem to find an easy way
to do this in R.
I think it is a relatively easy thing to do but i tried Agricolae and seem
to be getting so lost I cannot even get
Sorry, try this again.
Does this help:
http://www2.warwick.ac.uk/fac/sci/moac/degrees/moac/ch923/lectures/moac_-_designing_experiments_in_r.pdf
If not, we need some more specifics about what you've tried and where
you are running into problems.
Sarah
On Thu, Jun 12, 2014 at 11:34 AM,
4 matches
Mail list logo