[R] how to obtain p values from an ANOVA result

Greg Snow Greg.Snow at imail.org
Fri Feb 13 19:43:11 CET 2009

It depends on what type of model "model" is.

In some cases you can do something like
anova(model, test='Chisq')

See the appropriate help to find out the options, but note that if the p-values are not provided by default, it could be because there is doubt about the accuracy of the approximation and you should use them with caution (or use simulation to verify the quality of the approximation). 

Hope this helps,

Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at imail.org

> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of R User R User
> Sent: Friday, February 13, 2009 10:53 AM
> To: r-help at r-project.org
> Subject: [R] how to obtain p values from an ANOVA result
> Hi all,
> I'm tryint to turn my ANOVA result from anova(model) in to p values.
> The
> default output is:
> term ; Df ; Deviance ; resid Df; Resid. Dev
> Is there a way to add p values to this output so the significance of
> the
> terms can be easily determined?
> Thanks in advance.
> Richie
> 	[[alternative HTML version deleted]]
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-
> guide.html
> and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list