为什么在运行逻辑回归时会发生错误

时间:2018-11-28 16:27:53

标签: r

我正在研究显示网络中生成的票证的数据集。

我在此处附上了文件图片。

enter image description here

我正在尝试根据具体情况,组成和类别对影响进行逻辑回归。

这是我的代码

# Fitting Logistic Regression to the Training set
classifier = glm(Impact ~ ., family = binomial(link='logit'), data = train)
# Choosing the best model by AIC in a Stepwise Algorithm
# The step() function iteratively removes insignificant predictor variables from the model.
classifier <- step(classifier)

运行代码时,它将显示此错误

"glm.fit: fitted probabilities numerically 0 or 1 occurred"

请帮助我解决此错误。

0 个答案:

没有答案
相关问题