Dear friends, Hope you are doing great. I want to fit a logistic regression in R, where the dependent variable is the covid status (I used 1 for covid positives, and 0 for covid negatives), but when I ran the glm, R complains that I should make the dependent variable a factor.
What would be more advisable, to keep the dependent variable with 1s and 0s, or code it as yes/no and then make it a factor? Any guidance will be greatly appreciated, Best regards, Paul [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.