[R] Force regression line to a 1:1 relationship
Patrick Breheny
patrick.breheny at uky.edu
Wed Sep 14 16:52:14 CEST 2011
On 09/13/2011 04:27 PM, David Winsemius wrote:
...
> Also should be plotting against fitted() rather than regressors.
...
Both types of plots (vs. fitted values and vs. regressors) are very
common. The former is a default plot in R, the first one that appears
if you submit:
fit <- lm(y~X)
plot(fit)
The latter type of plot is called a "partial regression plot" or "added
variable plot". They are discussed in any regression textbook, as well
as wikipedia and probably dozens of other web sites.
--
Patrick Breheny
Assistant Professor
Department of Biostatistics
Department of Statistics
University of Kentucky
More information about the R-help
mailing list