hw3 Rquestions

hw3 Rquestions - -8.563158 13.753125 3.28 i>...

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

2.23 > dat<-read.csv("http://www.stat.umn.edu/~graalum/data/ch2/ex0223.csv",header=T) > names(dat) [1] "STATE" "INCREASe" "FATALITIESCHANGE" > head(dat) STATE INCREASe FATALITIESCHANGE 1 Alaska No -29.0 2 Connecticut No -4.4 3 Dist. of Columbia No -80.0 4 Hawaii No -25.0 5 Indiana No -13.2 6 Kentucky No 3.4 > attach(dat) > t.test(FATALITIESCHANGE~INCREASe,alternative='less',var.equal=TRUE) Two Sample t-test data: FATALITIESCHANGE by INCREASe t = -3.0435, df = 49, p-value = 0.001877 alternative hypothesis: true difference in means is less than 0 95 percent confidence interval: -Inf -10.02313 sample estimates: mean in group No mean in group Yes

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.

Unformatted text preview: -8.563158 13.753125 3.28 i) > data<-read.csv("http://www.stat.umn.edu/~graalum/data/ch3/ex0328.csv",header=T) > attach(data) > boxplot(REMOVED~BEE,ylab="REMOVED",xlab="BEE",data=data) > > data\$logX<-with(data,log((REMOVED)/(1-REMOVED))) > boxplot(logX~BEE,ylab="logX",xlab="BEE",data=data) iii) > t.test(data\$logX,alternative='two.sided',mu=0.0,conf.level=.95) One Sample t-test data: data\$logX t = -0.5939, df = 46, p-value = 0.5555 alternative hypothesis: true mean is not equal to 0 95 percent confidence interval:-0.3866656 0.2104695 sample estimates: mean of x -0.08809807...
View Full Document

This note was uploaded on 01/22/2012 for the course STAT 3022 taught by Professor Staff during the Fall '08 term at Minnesota.

Page1 / 3

hw3 Rquestions - -8.563158 13.753125 3.28 i>...

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

View Full Document
Ask a homework question - tutors are online