Skip to content
Prev 184 / 7420 Next

Inference, logistic regression

On Mon, 2008-06-02 at 21:38 -0700, Andrew Rominger wrote:
The degrees of freedom for the chisq test is 93 - 92 = 1.
 pchisq(11.97, 1, lower.tail=FALSE)
[1] 0.0005406394

Which is pretty close to the Wald test. Wald tests can sometimes be
misleading, since the estimate of the standard error in the denominator
can blow out and cause the test to be not significant even when there is
a big effect size, which is one reason to prefer the LR test. If you
want to get R to do the LR test, fit one model with and without the
covariate, and use anova.

fit.with <- glm(bout.psol$pres.de~bout.psol$index,family=binomial)
?
fit.without <- glm(bout.psol$pres.de~ 1 ,family=binomial)

anova(fit.without, fit.with)

Cheers,

Simon.