contrast error factors with 2 or more levels

32 views Asked by At

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?

0

There are 0 answers