This function generates a nearly balanced concurrence matrix from given number of treatments (v), number of blocks (b) and block size (k) by trial and error.
ccmat(v,b,k)
A v by v matrix is returned if a desired concurrence matrix is found, else it returns a v by v matrix of zeros. If the parameters are infeasible for a nearly balanced concurrence matrix, the function returns the parameter values.
Number of treatments
Number of blocks
Block size
B N Mandal <mandal.stat@gmail.com>