> I'd like to find the value of r-square change at each step of a regression model.

>

> I know that I can use anova () to compare to models, but, if I want to find out

> that how much exactly r-square has change from one model to the next, how

> can I find that?

See ?summary.lm

For a linear model L

summary(L)$r.squared

gives R^2

and the adjusted R^2 is

summary(L)$adj.r.squared

S Ellison

*******************************************************************

This email and any attachments are confidential. Any use...{{dropped:8}}

______________________________________________

[hidden email] mailing list -- To UNSUBSCRIBE and more, see

https://stat.ethz.ch/mailman/listinfo/r-helpPLEASE do read the posting guide

http://www.R-project.org/posting-guide.htmland provide commented, minimal, self-contained, reproducible code.