Get startedGet started for free

Regression to the mean

A sample size that is too small will not reveal an effect or be representative of the population.

This exercise assesses regression to the mean, using one-sample t-tests of one group, on the amount of time employees have been in a job position.

The absent dataset, pwr, and ggplot2 packages have been loaded for you. The time spent as an employee in the absent dataset has been sub-organized into three samples. The smallsamp list contains a random sample of 15 data points, the largesamp list contains 400 data points, and the allsamp list contains all 740 data points.

This exercise is part of the course

A/B Testing in R

View Course

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Run three t-tests, one on each sample size
___
___
___
Edit and Run Code