Skip to content
Prev 260437 / 398502 Next

regression coefficient for different factors

?summary

produces r^2 in 2nd to last line, as in,
a         b   c
1 -1.4805676 0.9729927  No
2  1.5771695 0.2172974 Yes
3 -0.9567445 0.5205087  No
4 -0.9200052 0.8279428 Yes
5 -1.9976421 0.9641110  No
6 -0.2722960 0.6318801 Yes
Call:
lm(formula = a ~ b * c)

Residuals:
    Min      1Q  Median      3Q     Max
-1.8196 -0.4754 -0.0246  0.5585  2.0941

Coefficients:
            Estimate Std. Error t value Pr(>|t|)
(Intercept)   0.2293     0.2314   0.991    0.324
b            -0.4226     0.3885  -1.088    0.280
cYes          0.1578     0.3202   0.493    0.623
b:cYes       -0.5878     0.5621  -1.046    0.298

Residual standard error: 0.8455 on 96 degrees of freedom
Multiple R-squared: 0.07385,	Adjusted R-squared: 0.04491
F-statistic: 2.552 on 3 and 96 DF,  p-value: 0.0601

------------------------------------------
Robert W. Baer, Ph.D.
Professor of Physiology
Kirksville College of Osteopathic Medicine
A. T. Still University of Health Sciences
800 W. Jefferson St.
Kirksville, MO 63501
660-626-2322
FAX 660-626-2965


--------------------------------------------------
From: "Francesco Nutini" <nutini.francesco at gmail.com>
Sent: Friday, May 20, 2011 4:17 AM
To: "[R] help" <r-help at r-project.org>
Subject: [R] [r] regression coefficient for different factors