calculate_mean_matrix function

Create input for simulation based two-way factorial experiments