powered by
This function gives the information matrix from a given incidence matrix of a block design
Cmatrix(N)
incidence matrix
v by v information matrix where v is number of treatments
# NOT RUN { N=matrix(c(1,0,0,0,1,0,1,0,0,0,1,0,1,1,0,0,1,0,1,1,0,1,0,1,1,0,0,0,0,1,1,0,0,0,1,1,1,0,0,0,1,0,0 ,1,0,1,1,0,0),nrow=7,byrow=TRUE) Cmatrix(N) # }
Run the code above in your browser using DataLab