STAT 4220 HW1

# STAT 4220 HW1 - Austin Wen STAT 4220 HW1 1 a R code > library(faraway > data(savings > savings > mdl = lm sr ~ pop15 pop75 dpi ddpi data=savings >

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

Austin Wen STAT 4220 HW1 1. ( a) R code > library(faraway) > data(savings) > savings > mdl = lm( sr ~ pop15+pop75+dpi+ddpi, data=savings) > summary(mdl) Call: lm(formula = sr ~ pop15 + pop75 + dpi + ddpi, data = savings) Residuals: Min 1Q Median 3Q Max -8.2422 -2.6857 -0.2488 2.4280 9.7509 Coefficients: Estimate Std.Error t value Pr(>|t|) (Intercept) 28.5660865 7.3545161 3.884 0.000334 *** pop15 -0.4611931 0.1446422 -3.189 0.002603 ** pop75 -1.6914977 1.0835989 -1.561 0.125530h dpi -0.0003369 0.0009311 -0.362 0.719173 ddpi 0.4096949 0.1961971 2.088 0.042471 * --- Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 Residual standard error: 3.803 on 45 degrees of freedom Multiple R-squared: 0.3385, Adjusted R-squared: 0.2797 F-statistic: 5.756 on 4 and 45 DF, p-value: 0.0007904 (b) We define the pop15’s coefficient equal to β 1 , and then set up the hypotheses H o : β 1 = 0 Ha : β 1 ≠ 0 Reject H o . There is significant evidence that the β 1 is not equal to zero because the p-

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 06/06/2011 for the course STAT 4220 taught by Professor Smith during the Spring '08 term at University of Georgia Athens.

### Page1 / 2

STAT 4220 HW1 - Austin Wen STAT 4220 HW1 1 a R code > library(faraway > data(savings > savings > mdl = lm sr ~ pop15 pop75 dpi ddpi data=savings >

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

View Full Document
Ask a homework question - tutors are online