'~1' 与逻辑回归的含义

时间:2021-02-28 08:55:38

标签: r logistic-regression

这段代码中~1是什么意思

<块引用>

glm(credit.rating**~1**... scope=list(lower=~1...

step.logistic<-step(glm(credit.rating~1, data=train, family="binomial"),
                    scope=list(lower=~1, upper=~account.balance+credit.duration.months+previous.credit.payment.status+
                                 credit.purpose+credit.amount+savings+employment.duration+installment.rate+
                                 marital.status+guarantor+residence.duration+current.assets+age+other.credits+
                                 apartment.type+bank.credits+occupation+dependents+telephone+foreign.worker),
                    direction="both")

0 个答案:

没有答案
相关问题