lab3 - STAT5044 Lab3 Inyoung Kim Outline 1 How to check...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

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

Unformatted text preview: STAT5044: Lab3 Inyoung Kim Outline 1 How to check assumptions using R Example A health researcher, interested in studying the relationship between diastolic blood pressure and age among healthy adult women 20 to 60 years odl, collected data on 54 subjects. (Text book 427) Call data Read data data3<-read.table("d:/data/CH11TA01.txt",header=F) x<-data3[,1] y<-data3[,2] lmfit<-lm(y˜x) Simple linear regression Simple linear fit summary(lmfit) Call: lm(formula = y ˜ x) Residuals: Min 1Q Median 3Q Max-16.47859-5.78765-0.07844 5.61173 19.78132 Coefficients: Estimate Std. Error t value Pr(>|t|) (Intercept) 56.15693 3.99367 14.061 < 2e-16 *** x 0.58003 0.09695 5.983 2.05e-07 ***--- Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 Residual standard error: 8.146 on 52 degrees of freedom Multiple R-squared: 0.4077, Adjusted R-squared: 0.3963 F-statistic: 35.79 on 1 and 52 DF, p-value: 2.050e-07 Scatter plot Scatter plot 20 30 40 50 60 70 80 90 100 110 x y Cooks distancs for influence ploints...
View Full Document

This note was uploaded on 01/02/2012 for the course STAT 5044` taught by Professor Staff during the Fall '11 term at Virginia Tech.

Page1 / 18

lab3 - STAT5044 Lab3 Inyoung Kim Outline 1 How to check...

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

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