Consider the following very simple genetic model A populatio
Consider the following very simple genetic model. A population consists of equal numbers of two sexes: male and female. At each generation men and women are paired at random, and each pair produces exactly two offspring, one male and one female. We are interested in the distribution of height from one generation to the next. Suppose that the height of both children is just the average of the height of their parents, how will the distribution of height change across generations? Represent the heights of the current generation as a dataframe with two variables, m and f, for the two sexes. We know that the command rnorm(100, 160, 20) will generate a vector of length 100, according to the normal distribution with mean 160 and standard deviation 20. We will use it to randomly generate the population at generation 1: pop
Solution
Output:
