当我使用logit
运行family=binomial
模型时,它不起作用-但是当我添加时它起作用:
logit1 = glm(Rhapmar ~ wwwhr + tvhours + LnIncome + age + childs + as.factor(relig), sub, family=binomial(link = "logit"))
为什么?
logit1 = glm(Rhapmar ~ wwwhr + tvhours + LnIncome + age + childs + as.factor(relig), sub, family=binomial(link = "logit"))