powered by
This function checks whether an incomplete block design is orthogonal or not. Treatment by block incidence matrix of the design is to be supplied as input to the function. If the design is orthogonal, it returns a value of 1 else it returns 0.
is.orthogonal(N)
orthogonal
incidence matrix
B N Mandal <mandal.stat@gmail.com>
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) is.orthogonal(N)
Run the code above in your browser using DataLab