[R] different results with plot.lm vs. plot.lm(which=c(2))
Prof Brian Ripley
ripley at stats.ox.ac.uk
Wed Nov 12 18:43:51 CET 2008
Instead of re-posting the same message, please study the posting guide and
supply the information asked for, including a reproducible example. There
is no way we can help you unless you help us to help you.
On Wed, 12 Nov 2008, Effie Greathouse wrote:
> I am running GLM models using the gamma family. For example:
> model <-glm(y ~ x, family=Gamma(link="identity"))
>
> I am getting different results for the normal Q-Q plot and the
> Scale-Location plot if I run the diagnostic plots without specifying the
> plot vs. if I specify the plot ... e.g., "plot(model)" gives me a different
> Normal Q-Q graph than "plot(model, which=c(2))". The former gives data
> points distributed in a quadratic pattern, while the latter gives data
> points more or less along the 1:1 line. Shouldn't these two commands be
> giving me the same exact graphs? I have read the documentation on plot.lm
> and searched the help archives, but I am still learning GLM's and I'm not
> very familiar with understanding diagnostic plots for GLM's, so any help
> would be much appreciated!
>
> [[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.
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-help
mailing list