Ch 18: One sample t-test

The following examples are based on the data, soc510hw2.csv in which female, married, and wage variables are found. Note that females are coded 1 and males are coded 0. How to read a data file into R is found here.

Two-tail t-test


One-tail t-test


[ Going back to Using R: Index ]