Exercise 1.12

Load in the data by hand.

> fish = c(8,12,10,14,2,0,0)
> regular = c(-6,0,1,2,-3,-4,2)

Use t.test to carry out a t test and to compute a confidence interval.

> t.test(fish,regular)

Assume equal variances.

> t.test(fish,regular,var.equal=T)

Change the confidence level.

> t.test(fish,regular,conf.level=0.99)

Carry out a paired test.

> t.test(fish,regular,paired=T)

Look at all of the options for the function.