Compute relatedness conditionnal on total population size
Several populations, compute mean and confidence interval
At least it looks like a commented code !