An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20090213/10a3650b/attachment-0001.pl>
how to obtain p values from an ANOVA result
3 messages · R User R User, Phil Spector, Greg Snow
Richie -
There is a test= argument that can be set to "Chisq", "F" or
"Cp", for various different tests. See the help file for
anova.glm for details (or look at anova.xxx if your model is
of class "xxx").
- Phil
On Fri, 13 Feb 2009, R User R User wrote:
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.
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 801.408.8111 > -----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.