Dear all,

I am fitting a GLM similar to

library(MASS)
anorex.1 <- glm(Treat~Postwt+Prewt,family = binomial, data = anorexia)

I have found two ways of computing the p-value of the fitted model:
pval1 <- 1-pchisq(anorex.1$deviance,anorex.1$df.residual)
pval2 <- 1-pchisq(anorex.1$null.deviance - anorex.1$deviance,
                  anorex.1$df.null - anorex.1$df.residual)

pval2 is testing LR chi2 from the null model, but what does pval1 says?

Many thanks in advance,
Dunia

	[[alternative HTML version deleted]]

