I am conducting a log binomial regression in R. I want to control for covariates in the model (age and BMI- both continuous variables) whereas the dependent variable is Outcome(Yes or No) and independent variable is Group (1 or 2).
fit<-glm(Outcome~Group, data=data.1, family=binomial(link="log"))
Run Code Online (Sandbox Code Playgroud)
and it works fine.
When I try putting age in the model, it still works fine. However, when I put BMI in the model, it gives me the following:
Error: no valid set of coefficients has been …Run Code Online (Sandbox Code Playgroud)