SCnext / SCGLR

An extension of the Fisher Scoring Algorithm to combine PLS regression with GLM estimation in the multivariate context. Covariates can be grouped in themes.
https://scnext.github.io/SCGLR/
1 stars 1 forks source link

contrasts error in scglrTheme #20

Closed billy34 closed 3 years ago

billy34 commented 3 years ago

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 3 years ago

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