calclate mean response for each phenotype