I found one error in in the code, however, I still receive errors. Error in storage.mode(y) <- "double" : invalid to change the storage mode of a factor Moreover: Warning message: In model.response(mf, "numeric") : using type="numeric" with a factor response will be ignored
>From my understanding of the warning there are two errors, maybe they are connected. I think I should change an option in the lm changing the responso from "numeric" to "factor". Is it true? How it can be done? -- View this message in context: http://r.789695.n4.nabble.com/lm-regression-tp3060123p3060363.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.