Rforch07 - R Material for Chapter 07 > attach(sales.data) >...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
R Material for Chapter 07 > attach(sales.data) > sales.data young income sales 1 68.5 16.7 174.4 2 45.2 16.8 164.4 3 91.3 18.2 244.2 4 47.8 16.3 154.6 5 46.9 17.3 181.6 6 66.1 18.2 207.5 7 49.5 15.9 152.8 8 52.0 17.2 163.2 9 48.9 16.6 145.4 10 38.4 16.0 137.2 11 87.9 18.3 241.9 12 72.8 17.1 191.1 13 88.4 17.4 232.0 14 42.9 15.8 145.3 15 52.5 17.8 161.1 16 85.7 18.4 209.7 17 41.3 16.5 146.4 18 51.7 16.3 144.0 19 89.6 18.1 232.6 20 82.7 19.1 224.1 21 52.3 16.0 166.5 > reg < - lm(sales~ young + income) > summary(reg) Call: lm(formula = sales ~ young + income) Residuals: Min 1Q Median 3Q Max -18.4239 -6.2161 0.7449 9.4356 20.2151 Coefficients: Estimate Std. Error t value Pr(>|t|) (Intercept) -68.8571 60.0170 -1.147 0.2663 young 1.4546 0.2118 6.868 2e-06 *** income 9.3655 4.0640 2.305 0.0333 * --- Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 Residual standard error: 11.01 on 18 degrees of freedom Multiple R-squared: 0.9167, Adjusted R-squared: 0.9075
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 07/08/2011 for the course STA 4211 taught by Professor Randles during the Spring '08 term at University of Florida.

Page1 / 2

Rforch07 - R Material for Chapter 07 > attach(sales.data) >...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online