[R] testing factor effects in glm
Thomas Lumley
tlumley at u.washington.edu
Wed Feb 22 16:48:09 CET 2006
On Wed, 22 Feb 2006, I.Szentirmai wrote:
> Dear All,
>
> I'm using a glm to analyse the effect of year on a
> variable with poisson distribution. Using the summary() I
> can test whether years are different from each other, but
> how can I test whether year has an overall effect on my
> respons variable? My guess is that by a Wald-test, but I
> don't know how exactly.
>
You can get a likelihood ratio test by also fitting a model without year
and using anova() to compare the two models.
I think multiple people have written wald test functions. Mine is
regTermTest in the "survey" package.
-thomas
More information about the R-help
mailing list