Trafim Vanishek wrote:
> Dear all,
>
> I cannot find to explicitly get the R-squared or adjusted R-squared from
> summary(lm())
>
> names(summary(RegModel.1))
[1] "call" "terms" "residuals" "coefficients"
[5] "aliased" "sigma" "df""r.squared"
[9]
On 1/22/2010 10:10 AM, Trafim Vanishek wrote:
> Dear all,
>
> I cannot find to explicitly get the R-squared or adjusted R-squared from
> summary(lm())
fm1 <- lm(Sepal.Length ~ Sepal.Width, data=iris)
summary(fm1)
str(summary(fm1))
summary(fm1)$r.squared
?str
> Thanks a lot!
>
> [[alte
Hi Trafim,
Take a look at the following example:
set.seed(123)
x <- runif(100)
y <- 3 + 1.5*x + rnorm(100)
fit <- lm(y ~ x)
summary(fit)
str(summary(fit))
summary(fit)$r.squared
HTH,
Jorge
On Fri, Jan 22, 2010 at 10:10 AM, Trafim Vanishek <> wrote:
> Dear all,
>
> I cannot find to explicitly
Trafim Vanishek wrote:
Dear all,
I cannot find to explicitly get the R-squared or adjusted R-squared from
summary(lm())
Thanks a lot!
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/list
4 matches
Mail list logo