I have a data frame with about 40 rows of data and I am trying to run a multiple regression analysis. I am a beginner with R and don't know what's wrong. I have cleaned out the NA's with the omit.na function
Regression <- lm(y ~ annu+gdp+pce+int+oil+usex+exf+inxf+m.2, data = data)
Error in
contrasts<-
(*tmp*
, value = contr.funs[1 + isOF[nn]]) : contrasts can be applied only to factors with 2 or more levels In addition: Warning message: In storage.mode(v) <- "double" : NAs introduced by coercion