提问人:Lolipop_1978 提问时间:11/15/2023 最后编辑:PhilLolipop_1978 更新时间:11/15/2023 访问量:24
GLM错误链接系列不合适,我该怎么办才能找到正确的?
GLM error link family not appropriate, what should I do to find correct?
问:
我为我的数据创建了以下 glm:
CLEXP<-Count of accidents per vehicle/Exposure of vehicle
model1<-glm(CLEXP~Characteristic1+Char2+Char3, family=gamma(link=inverse))
但我不断收到错误:找不到对象“反转”
我最初尝试使用泊松,但这不起作用,因为向量 CLEXP 不是由整数组成的(因为它除以曝光)。不过,我仍然不确定为什么 Inverse Gamma 会出错。
我也不确定如何解释这个模型中的暴露,我是否需要包括一个偏移量?
答: 暂无答案
评论