designVec2Mat:
Convert between a vector and matrix representation of the design
Description
Convert between representations of a one-way anova with $m$ treatments and $T$ measurements.
The vector representation is a T-length integer vector with m distinct integers. The matrix representation is a T by m matrix with a 1 at i,j indicating the
i'th measurement belongs to the j'th treatment.