calculate genotype effects for RCBD