R-VariableSelection - Stat 425 Variable Selection > loc...

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

View Full Document Right Arrow Icon
Stat 425 Variable Selection > loc <- "http://www.stat.umn.edu/~sandy/courses/8051/data/hald.txt" > hald <- read.table(url(loc), header = TRUE) > summary(m1 <- lm(Y ~ X1 + X2 + X3 + X4, hald)) Call: lm(formula = Y ~ X1 + X2 + X3 + X4, data = hald) Residuals: Min 1Q Median 3Q Max -3.1750 -1.6709 0.2508 1.3783 3.9254 Coefficients: Estimate Std. Error t value Pr(>|t|) (Intercept) 62.4054 70.0710 0.891 0.3991 X1 1.5511 0.7448 2.083 0.0708 X2 0.5102 0.7238 0.705 0.5009 X3 0.1019 0.7547 0.135 0.8959 X4 -0.1441 0.7091 -0.203 0.8441 --- Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 Residual standard error: 2.446 on 8 degrees of freedom Multiple R-squared: 0.9824, Adjusted R-squared: 0.9736 F-statistic: 111.5 on 4 and 8 DF, p-value: 4.756e-07 >summary(m2 <- lm(Y ~ X1 + X2, hald)) Call: lm(formula = Y ~ X1 + X2, data = hald) Residuals: Min 1Q Median 3Q Max -2.893 -1.574 -1.302 1.362 4.048 Coefficients: Estimate Std. Error t value Pr(>|t|) (Intercept) 52.57735
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 12/12/2010 for the course STAT 425 taught by Professor Ma,p during the Fall '08 term at University of Illinois, Urbana Champaign.

Page1 / 4

R-VariableSelection - Stat 425 Variable Selection &gt; loc...

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