 can someone tell me if there is an easier way to do this in R - create a design matrix? thanks.
—> design <- model.matrix(~ -1+factor(c(1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5))) # Creates an appropriate design matrix
can someone tell me if there is an easier way to do this matrix?
thanks. 
	[[alternative HTML version deleted]]

