小编Tin*_*ina的帖子

Error: please supply starting values

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)

error-handling regression r glm

4
推荐指数
1
解决办法
4376
查看次数

标签 统计

error-handling ×1

glm ×1

r ×1

regression ×1