An example of a t test on one population mean. I first work through an example of a t test, then briefly investigate the influence of 3 outliers on the conclusions.
The sleep misperception index data is simulated data with the same summary statistics as found in:
Manconi et al. (2010). Measuring the error in sleep estimation in normal subjects and in
patients with insomnia. Journal of Sleep Research, 19:478--486.