问题遇到的现象和发生背景
泊松回归
问题相关代码,请勿粘贴截图
y = data['y']
x1=data['x1']
...
x = np.column_stack((x1, x2, x3, x4, x5, x6))
model = sm.GLM(y,x,family=sm.families.Poisson()).fit()
print(model.summary())
运行结果及报错内容
ValueError: The first guess on the deviance function returned a nan. This could be a boundary problem and should be reported.