1
我已经考虑了2乘2表,数据是关于学生在跑步之前和之后的脉搏率。我考虑了对PulseBefore和PulseAfter的Ran(是/否)并制作了一个应急表。我拟合了一个泊松对数线性模型,并得到这样的输出。泊松对数线性模型的拟合
inde<-glm(dat$Ran1~dat$Pulse1+dat$Pulse2,family=poisson)
inde
Call: glm(formula = dat$Ran1 ~ dat$Pulse1 + dat$Pulse2, family = poisson)
Coefficients:
(Intercept) dat$Pulse1 dat$Pulse2
-2.09795 -0.02745 0.02968
Degrees of Freedom: 108 Total (i.e. Null); 106 Residual
Null Deviance: 79.37
Residual Deviance: 37.21 AIC: 135.2
这是正确的吗?
也许预测脉搏率2作为脉搏率1的函数加上速率1与他们是否跑步的相互作用 - 例如, ('glm(Pulse2〜Pulse1 + Pulse1:Ran1,data = at,family = poisson)') –
@ Marc在箱子里如果我考虑这个模型,那么我的应变表将如何?我如何识别行和列效应模型? – Shree