contrasts error in scglrTheme
billy34 opened this issue · 1 comments
billy34 commented
Contrasts error generated when providing factor variable as Additional
Error in `contrasts<-`(`*tmp*`, value = contr.funs[1 + isOF[nn]]) :
contrasts can be applied only to factors with 2 or more levels
billy34 commented
when finding additional beta vars using model.matrix
only first line of data was given resulting in only one factor level !
providing the whole data solves the issue