Compute column-wise mean in X for each factor level of Y
group_means.Rd
This function computes group means for each factor level of Y in the provided data matrix X.
Arguments
- Y
a vector of labels to compute means over disjoint sets
- X
a data matrix from which to compute means