To open R with the data set preloaded, right-click here and choose "Save Target As" to download the file to your computer. Then find the downloaded file and double-click it to open it in R.
The data have been loaded into the data frame seed
. Enter the command seed
to see the data. The variables in the data frame are regular.seed
and kiln.dried.seed
.
To carry out the paired t-test, use the following command:
t.test(seed$regular.seed, seed$kiln.dried.seed, alternative="less", paired=TRUE)
The mean of the differences is provided in the output in addition to the other pertinent information. Notice that the order of the variables indicates the order of the difference calculation (position 1 - position 2
).