Exercise 1-1: Selection & Inheritance Lab Exercise
Instructors: Pat Carter, Steve Arnold, & Josef Uyeda
In this computer exercise we will improve our intuition about heritability in a couple of
ways. First, we will use actual data from a natural population to obtain a point estimate
of heritability using the statistical procedure of regression. We will examine data on
garter snakes and use regression to estimate heritability for 6 traits in our dataset. Second,
we will use bootstrapping to see how our point estimate of heritability (2 times the
regression slope) is affected by the particular sample of mothers and daughters that we
use.
Background readings:
You can read more about these data and analyses in these papers from which the data
were originally presented.
Data
- Dataset
- Save these data onto your computer. The data are the values of 6 traits in a
sample of mothers and their daughters from one population of a garter snake,
Thamnophis elegans. The first line is the header which lists the names of the
variables (8 columns):
- local = the name of the population
- family = the name of the family (the first row with each family name is the
mother, the rows that follow with the same name are her daughters)
- body = the number of vertebrae in the body
- tail = the number of vertebrae in the tail
- mid = the number of scale rows around the snake, assessed at the middle point of
the body
- ilab = the number of scales on the lower lip (infralabials, sum of left and right
sides)
- slab = the number of scales on the upper lip (supralabials, sum of left and right
sides)
- post = the nmber of scales behind the eye (postoculars, sum of left and right sides)
Code
We will use an R markdown file.