I'm doing a bootstrap on R for a multivariate regression: I have variables that cause problems because they are less than one level, I tried to solve this with the function as factor.
Error in
contrasts<-(*tmp*, value = contr.funs[1 + isOF[nn]]) : contrasts can be applied only to factors with 2 or more levels
How can i solve this?