glm_design function

Create a design matrix for linear model analysis