data example3;
input hp path counts n@@;
ln=log(n);
cards;
1 1 1 4 1 2 9 69 1 3 26 747 1 4 32 2296 1 5 3 136
2 1 1 3 2 2 8 85 2 3 48 983 2 4 24 963 2 5 0 10
3 1 0 4 3 2 9 55 3 3 18 312 3 4 8 101 3 5 0 0
4 1 0 1 4 2 8 44 4 3 12 60 4 4 2 4 4 5 0 0
5 1 1 3 5 2 6 26 5 3 5 16 5 4 0 1 5 5 0 0
;
proc genmod data=example3;
class hp(param=ref ref=first) path(param=ref ref=first);
model counts=hp path/dist=poisson link=log
offset=ln type1 type3;
run;
我做的是poisson回归模型,出来的模型拟合度不好,我想问一下poisson回归模型必须要说明拟合度吗?必须是P大于0.05说明模型拟合度好才能继续继续吗?像logistic回归也没有说模型的拟合度就直接分析了,两者应用的原来很相似。如果模型拟合度不好,但是数据就是这种情况,该如何解决呢?