1

glm我和家人一起调整了一个Tweedie。现在我需要在响应量表中获得调整后的均值和标准误。至今:

mtcars$am <- as.factor(mtcars$am)
m1 <- glm(hp ~ am, data = mtcars,
          family = statmod::tweedie(var.power = 2.2, 
                                    link.power = 0 #link log
                                    ))
summary(emmeans(m1, "am"), type = "response")

 am response      SE  df asymp.LCL asymp.UCL
 0    5.0768 0.11516 Inf    4.8511    5.3025
 1    4.8430 0.13600 Inf    4.5764    5.1095

Unknown transformation "mu^0": no transformation done 
Confidence level used: 0.95 

如何告知我使用了链接log()?如何处理:“未知转换“mu^0”:未完成转换“?

4

1 回答 1

1

做这个:

emm <- update(emmeans(m1, "am"), tran = "log")
summary(emm, type = "response")

有关更多详细信息,请参阅转换中的小插图。

于 2018-10-20T15:27:31.653 回答