Hi,
I am running into an issue with R-Studio where when I attempt to run regression of a subset of the full data frame I get the following error:
Error in contrasts<-(*tmp*, value = contr.funs[1 + isOF[nn]]) :
contrasts can be applied only to factors with 2 or more levels
I understand this may mean that one or more variables have one level. But, the issue is all my variables are numerical and should not have this error. Is there anything I can do to write something within the code that will skip over these errors and proceed with the data that does work?
Thank you