head(dat BP DIET 1 8 fishoil 2 12 fishoil 3 10"/>
hw2 Rquestions

Hw2 Rquestions - 2.14 > dat<-read.csv"http/www.stat.umn.edu/~graalum/data/ch1/ex0112.csv,header=T > head(dat BP DIET 1 8 fishoil 2 12 fishoil 3 10

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

View Full Document Right Arrow Icon
2.14 > dat<-read.csv("http://www.stat.umn.edu/~graalum/data/ch1/ex0112.csv",header=T) > head(dat) BP DIET 1 8 fishoil 2 12 fishoil 3 10 fishoil 4 14 fishoil 5 2 fishoil 6 0 fishoil > attach(dat) > t.test(BP~DIET,alternative="two.sided",var.equal=T) Two Sample t-test data: BP by DIET t = 3.0621, df = 12, p-value = 0.009861 alternative hypothesis: true difference in means is not equal to 0 95 percent confidence interval: 2.225174 13.203398 sample estimates: mean in group fishoil mean in group regularoil 6.571429 -1.142857 2.16 > dat<-read.csv("http://www.stat.umn.edu/~graalum/data/ch1/case0101.csv",header=T) > head(dat) SCORE TREATMENT 1 5.0 EXTRINSIC 2 5.4 EXTRINSIC 3 6.1 EXTRINSIC 4 10.9 EXTRINSIC 5 11.8 EXTRINSIC 6 12.0 EXTRINSIC > attach(dat) > summary(SCORE) Min. 1st Qu. Median Mean 3rd Qu. Max. 5.00 14.90 18.70 17.86 21.25 29.70 2.21 > dat<-read.csv("http://www.stat.umn.edu/~graalum/data/ch2/ex0221.csv",header=T) > names(dat) [1] "WEIGHT" "STATUS" > head(dat) WEIGHT STATUS 1 24.5 survived 2 26.9 survived 3 26.9 survived 4 24.3 survived
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 01/22/2012 for the course STAT 3022 taught by Professor Staff during the Fall '08 term at Minnesota.

Page1 / 3

Hw2 Rquestions - 2.14 > dat<-read.csv"http/www.stat.umn.edu/~graalum/data/ch1/ex0112.csv,header=T > head(dat BP DIET 1 8 fishoil 2 12 fishoil 3 10

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