library(tidyverse)P1 — How fast is a population growing, and how sure can we be?
EEE330 Population Ecology · Practical 1
Before you start
In the winter of 1941, fifteen or so whooping cranes were left in the wild. Today there are several hundred. This afternoon you will work out how fast that population grew, and then ask the question that matters more for conservation: how sure can we be of that number? Along the way you will learn the R you need.
You need R and RStudio on your laptop, with the tidyverse package installed (see the refresher). Keep this file and the data folder together in the P01 folder, as they came. The photos are read from the course website, so they appear only with an internet connection.
Write your predictions and answers into this file as you go. At the end, render it and upload the HTML to OLAT (see Rendering and uploading below). It counts towards participation, not for being right, and it is your record of what you found.
Core and optional. Parts 1, 2, 3 and 4 are the core of today’s practical. Part 5 is optional: do it if you have time, now or later.
Working with Quarto in RStudio
This worksheet is a Quarto document (.qmd): text and R code in the same file. You read, run the code, and write your answers right next to it.
Opening the worksheet
- In RStudio, go to File › Open File… and open
P01.qmd. - At the top left of the document you can switch between Visual, which looks like a formatted page, and Source, which shows the plain text. Both edit the same file. Visual is easier to start with.
- Tell R where the data are: Session › Set Working Directory › To Source File Location.
Text and code
The grey boxes are code chunks; everything else is text. Inside a chunk, lines starting with # are comments, notes for the reader that R skips.
- To run a single line, put the cursor on it and press Cmd + Enter (Windows: Ctrl + Enter).
- To run a whole chunk, click the green ▶ at its top right, or press Cmd + Shift + Enter (Windows: Ctrl + Shift + Enter).
- To run everything above a chunk, click the small ▼ next to the ▶. You will need this after a break: when R restarts it forgets everything, and the chunks build on each other.
The output appears under the chunk, and anything you create shows up in the Environment pane at the top right.
Try it now. This chunk loads the tidyverse, a set of packages for reading, reshaping and plotting data that you will use throughout the course:
Writing your answers
Questions look like this:
Write your answer on the line below, in your own words.
Your prediction:
Type your answer into the box. If you want a code chunk of your own, use Code › Insert Chunk (Cmd + Option + I; Windows: Ctrl + Alt + I).
Rendering and uploading
At the end of the afternoon, click Render at the top of the document (Cmd + Shift + K; Windows: Ctrl + Shift + K). Quarto runs all the code from the top and writes P01.html next to this file, with your text, code, plots and answers in one page. That one file is all you upload.
To upload it: first rename it with your last name in front, for example Muster_P01.html. Then open the EEE330 course in OLAT, go to Practica / Exercises › Participant Folder, open Participant Drop Box, click Upload and choose Lastname_P01.html. Your folder is private: only you and the course team see it. Do the same for every practical (Lastname_P02.html, Lastname_P03.html, …).
If rendering stops with an error, the message names the chunk. Fix it, or put #| eval: false as the first line of that chunk to skip it, and render again. An unfinished worksheet is fine.
A few things that save time
- Run the chunks in order. Most errors in a first practical come from skipping one.
- If R starts behaving strangely, restart it (Session › Restart R) and run everything from the top.
- You can use AI and other tools, as long as you understand what they give you and check it.
- Offline, the photos are missing and rendering warns “Could not fetch resource”. You can ignore it.
Part 1 — Look first
Hunting and the draining of wetlands brought the whooping crane close to extinction. The one wild flock that survived winters on the Texas coast, at Aransas, and breeds 4000 km north in Wood Buffalo National Park, Canada. It has been counted every winter since 1938, one of the longest population records for any bird.
Read the counts:
cranes <- read_csv("data/whooping-crane.csv", comment = "#")
cranes# A tibble: 77 × 2
winter count
<dbl> <dbl>
1 1938 18
2 1939 22
3 1940 26
4 1941 16
5 1942 19
6 1943 21
7 1944 18
8 1945 22
9 1946 25
10 1947 31
# ℹ 67 more rows
read_csv() reads a file of comma-separated values; comment = "#" skips the lines at the top that describe the source. The result is a tibble: a table with one row per winter.
Now plot it. ggplot() builds a plot in layers: first the data and which columns go on which axis (aes()), then what to draw, then the labels.
ggplot(cranes, aes(x = winter, y = count)) +
geom_line(colour = "grey60") +
geom_point() +
labs(x = "Winter", y = "Number of cranes")Before you calculate anything: does the flock seem to grow at a steady rate? How many years do you think it takes to double? Write down a number.
Your prediction:
Part 2 — Growth rates
One year by hand
How much the flock changes from one winter to the next is the finite rate of increase,
\[\lambda_t = \frac{N_{t+1}}{N_t}.\]
Work out \(\lambda\) from 1938 to 1939 by hand, from the first two counts. Did the flock grow or shrink?
Your answer:
Solution. \(\lambda_{1938} = 22/18 = 1.22\): the flock grew by 22%. Four more birds in a flock of 18 is a big jump, and a reminder that in a very small population a single good breeding season shows up strongly.
Often missed. λ is the ratio, 22/18 = 1.22, not the growth of 22% (0.22). It is always positive: above 1 the flock grows, below 1 it shrinks.
Every year in R
mutate() adds a new column calculated from the others. lead(count) is the count in the next row, the following winter:
cranes <- cranes |>
mutate(lambda = lead(count) / count)
cranes# A tibble: 77 × 3
winter count lambda
<dbl> <dbl> <dbl>
1 1938 18 1.22
2 1939 22 1.18
3 1940 26 0.615
4 1941 16 1.19
5 1942 19 1.11
6 1943 21 0.857
7 1944 18 1.22
8 1945 22 1.14
9 1946 25 1.24
10 1947 31 0.968
# ℹ 67 more rows
The |> (the pipe) hands the table on its left to the function on its right; read it as “and then”. The last winter has no next count, so its \(\lambda\) is NA, R’s way of saying “missing”.
Plot the yearly rates, with a dashed line at \(\lambda = 1\), where the flock neither grows nor shrinks:
ggplot(cranes, aes(x = winter, y = lambda)) +
geom_hline(yintercept = 1, linetype = "dashed") +
geom_point() +
labs(x = "Winter", y = expression(lambda[t]))How much does \(\lambda\) vary from year to year, and how often did the flock shrink? What could make a year bad for whooping cranes? Think about the three places they spend the year: the breeding marshes, the migration route and the Texas coast.
Your answer:
Solution. The flock shrank in about one year in four, once by more than a third (from 26 to 16 birds, 1940 to 1941). Bad years can come from any part of the annual cycle: a dry spring on the breeding grounds, losses on migration (power lines, storms, the occasional illegal shooting), or a poor winter at Aransas. In the drought winter of 2008–09, for example, blue crabs, a main winter food, were scarce and many cranes died. In a flock of 20, the loss of three or four birds also depends partly on chance.
Often missed. Count the years: 20 of the 76 yearly rates are below 1, about one year in four, not nearly half. And the rates scatter around 1, not around 0.
One growth rate for the whole series
If the flock is multiplied by \(\lambda\) every year for \(T\) years, then \(N_T = N_0\,\lambda^T\), and so
\[\lambda = \left(\frac{N_T}{N_0}\right)^{1/T}.\]
N_first <- first(cranes$count)
N_last <- last(cranes$count)
years <- nrow(cranes) - 1 # number of steps from one winter to the next
lambda_overall <- (N_last / N_first)^(1 / years)
lambda_overall[1] 1.037893
Populations grow by multiplying, and logarithms turn multiplying into adding: \(\ln(a\,b) = \ln a + \ln b\), and \(\ln(\lambda^t) = t \ln\lambda\). The exponential undoes the logarithm: \(e^{\ln x} = x\). In R, log() is the natural logarithm and exp() the exponential.
The intrinsic rate of increase is \(r = \ln\lambda\). A population growing at a constant \(r\) doubles every \(\ln 2 / r\) years:
r_overall <- log(lambda_overall)
doubling_time <- log(2) / r_overall
r_overall[1] 0.03719284
doubling_time[1] 18.63658
- How close was your guess for the doubling time?
- Is about 4% a year fast or slow? Whooping cranes start breeding at about four years old, lay two eggs, and rarely raise more than one chick. How fast could a vole population grow? (Think back to this morning’s lecture.)
- Compare
lambda_overallwith the plain average of the yearly rates,mean(cranes$lambda, na.rm = TRUE). Which one turns 18 cranes into 304? Try18 * lambda_overall^years. - A smaller case, by hand: a population counted 20, 30, 15 and 15 in four successive years. What are its three yearly \(\lambda_t\), and their plain average? Did the population grow, stay the same or shrink?
Your answer:
# your code hereSolution.
mean_of_lambdas <- mean(cranes$lambda, na.rm = TRUE)
c(overall = lambda_overall, arithmetic_mean = mean_of_lambdas) overall arithmetic_mean
1.037893 1.045235
18 * lambda_overall^years[1] 304
18 * mean_of_lambdas^years[1] 519.4408
The flock doubled about every 19 years. That is slow, and it has to be: a bird that starts breeding at four and raises at most one chick a year cannot add many new birds each year, however good the conditions. A vole population can double within a season. The growth rate is set by the life history, the theme of this morning.
The small case shows the same thing in four numbers: the yearly rates are 1.5, 0.5 and 1.0, their plain average is exactly 1, and yet the population went from 20 to 15. Their geometric mean, \((1.5 \times 0.5 \times 1.0)^{1/3} = 0.91\), is the rate that turns 20 into 15 in three years. (The example is from Stevens’ A Primer of Ecology with R.)
For the cranes, the plain average of the yearly rates (1.045) is higher than the overall rate (1.038) and would predict far more cranes than were ever counted. Because growth multiplies, a bad year cancels more than an equally good year adds: a year at 0.8 followed by one at 1.2 leaves the flock smaller, not the same. The average that works is the geometric mean, \(\exp(\overline{\ln\lambda_t})\), which is exactly lambda_overall. L06 comes back to this.
Often missed. In the small case, the plain average of 1.5, 0.5 and 1 is exactly 1, yet the population went from 20 to 15: it shrank. In R, mean(l1, l2, l3) averages l1 alone, because mean() reads the other values as settings; write mean(c(l1, l2, l3)).
The log scale
On a log scale, a population growing at a constant rate is a straight line with slope \(r\), because \(\ln N_t = \ln N_0 + r\,t\):
ggplot(cranes, aes(x = winter, y = count)) +
geom_point() +
scale_y_log10() +
labs(x = "Winter", y = "Number of cranes (log scale)")Fitting a straight line to \(\ln N\) against time gives a second estimate of \(r\). lm() fits a linear model; read log(count) ~ winter as “log count explained by winter”:
fit <- lm(log(count) ~ winter, data = cranes)
coef(fit) (Intercept) winter
-73.11075756 0.03914698
Is the slope close to r_overall? Looking at the log-scale plot, did the flock grow at one steady rate, or were there slower and faster periods?
Your answer:
Solution. The slope (0.0391) is close to r_overall (0.0372); both mean about 3.8% a year. But the flock did not grow steadily. It barely grew until the mid 1950s, around the time its breeding grounds were found and protection improved, and it grew fastest in the 1980s. The dips also seem to come at fairly regular intervals; some authors have suggested a cycle of about ten years. One growth rate is a summary of 77 years, not a description of each of them.
Part 3 — How sure can we be?
The flock grew by about 4% a year, but the yearly rates jumped around a lot. With a different run of good and bad years, would we have estimated the same rate? We cannot replay history, but we can simulate it: make up a population whose true growth rate we know, and see how well our method recovers it.
A simulated flock
Each year the simulated flock is multiplied by its true \(\lambda\), plus a random amount for a good or bad year. That random part is drawn from a normal distribution on the log scale, with standard deviation sd_log:
simulate_counts <- function(N0, lambda, sd_log, years) {
N <- numeric(years)
N[1] <- N0
for (t in 1:(years - 1)) {
yearly_lambda <- exp(log(lambda) + rnorm(1, mean = 0, sd = sd_log))
N[t + 1] <- N[t] * yearly_lambda
}
tibble(year = 1:years, N = N)
}This is a function: a piece of code you can reuse with different values. You give it the starting number, the true growth rate, how much the years vary, and for how many years to run. Inside, the for loop steps through the years one at a time.
How much did the real cranes vary? Here is the standard deviation of their yearly \(\ln\lambda_t\):
sd_cranes <- sd(log(cranes$lambda), na.rm = TRUE)
sd_cranes[1] 0.1220559
Now simulate one flock that starts with 18 birds and has the cranes’ growth rate and variability:
set.seed(1) # makes the random numbers repeatable
one_flock <- simulate_counts(N0 = 18, lambda = 1.04, sd_log = sd_cranes, years = 77)
ggplot(one_flock, aes(x = year, y = N)) +
geom_line() +
scale_y_log10() +
labs(x = "Year", y = "Simulated count (log scale)")Run it again with set.seed(2) or set.seed(3). The true growth rate is the same every time; only the luck changes. How different do the histories look?
Estimating the rate a thousand times
Now estimate \(\lambda\) from a simulated flock exactly as you did for the real one, and repeat that for 1000 flocks. replicate() runs the same code many times and collects the results:
estimate_lambda <- function(counts) {
(last(counts$N) / first(counts$N))^(1 / (nrow(counts) - 1))
}
estimates <- replicate(1000, {
flock <- simulate_counts(N0 = 18, lambda = 1.04, sd_log = sd_cranes, years = 77)
estimate_lambda(flock)
})
ggplot(tibble(estimate = estimates), aes(x = estimate)) +
geom_histogram(bins = 40, fill = "grey70") +
geom_vline(xintercept = 1.04, colour = "firebrick") +
labs(x = expression(paste("Estimated ", lambda)), y = "Number of simulated flocks")The red line is the true value. Does the method get it right on average? Most monitoring programmes have far fewer than 77 years of data. If you only had 10, would the histogram be wider or narrower, and by how much? Write down your guess, then change years = 77 to years = 10 in both places and run it.
Your prediction:
What you found:
Solution.
spread <- tibble(years = c(10, 20, 40, 77)) |>
rowwise() |>
mutate(sd_of_estimates = sd(replicate(1000, estimate_lambda(
simulate_counts(N0 = 18, lambda = 1.04, sd_log = sd_cranes, years = years)))))
spread# A tibble: 4 × 2
# Rowwise:
years sd_of_estimates
<dbl> <dbl>
1 10 0.0408
2 20 0.0298
3 40 0.0201
4 77 0.0152
On average the method is right, but with 10 years the estimates are spread about three times more widely than with 77; the spread shrinks roughly with \(1/\sqrt{T}\). From ten years of counts, a flock that is really growing at 4% a year can easily look stable, or even look as if it is declining.
Counting is not perfect
So far the simulated counts were exact. Real counts are not: birds are missed or counted twice, and since 2011 the crane numbers are estimates from aerial surveys rather than full counts. Add a counting error to a simulated flock, here about 10% up or down each winter, and compare the yearly changes of the true flock with those of the counts:
set.seed(4)
true_flock <- simulate_counts(N0 = 100, lambda = 1.04, sd_log = sd_cranes, years = 40)
counted_flock <- true_flock |>
mutate(counted = N * exp(rnorm(n(), mean = 0, sd = 0.1))) # each count off by about 10%
c(true = sd(diff(log(true_flock$N))),
counted = sd(diff(log(counted_flock$counted)))) true counted
0.1024078 0.1644377
Which series looks more variable from year to year, the true flock or the counts? The counting error did not kill or add a single bird; so where does the extra variation come from? What would counting error do to the interval for \(r\) in Part 4, and to how variable we think the population is?
Your answer:
Solution. The counts look more variable than the flock really is. A count that is too high in one winter makes that winter’s change look too large and the next one too small, so counting error adds to the year-to-year scatter of \(\ln\lambda_t\) without any bird being born or dying. The growth rate itself is still estimated about right on average, but its interval becomes wider, a trend is harder to detect, and a population viability analysis built on these counts would treat counting error as real ups and downs, and overestimate the risk of extinction. Separating the true variation of the population (process variation) from counting error is a theme of L10.
Often missed. The question has three parts. Most answers said that the counts look more variable. Fewer said why: a count too high in one winter makes that change too large and the next one too small, so each yearly change carries two counting errors. Fewer still said what follows: r is still about right on average, but its interval is wider, and the population looks more variable than it is.
Trends and extinction risks from counts are now usually estimated with state-space models, which estimate the population’s true path and the counting error together instead of treating every wiggle in the counts as real (Dennis et al. 2006, Ecological Monographs 76:323–341; Holmes et al. 2007, Ecology Letters 10:1182–1198; Humbert et al. 2009, Oikos 118:1940–1946). In R, the package MARSS fits them.
Part 4 — Is there a trend?
Managers rarely ask “what is \(\lambda\)?”; they ask whether the population is declining. If ten years of counts show “no significant decline”, can we relax? Not necessarily: there may be no trend, or the data may not be good enough to tell. Simulation lets you find out which.
A test for a trend
With counts like these, the observations to work with are the yearly changes, \(\ln\lambda_t\). Their mean estimates \(r\) (the ratio method; it assumes exact counts, and Dennis et al. (1991) used it to forecast extinction risk, which you meet in P9). If its 95% confidence interval lies entirely above zero, we can say the population grew; entirely below zero, that it declined; if the interval includes zero, we cannot tell.
For the cranes:
log_growth <- diff(log(cranes$count)) # ln(N[t+1]) - ln(N[t]), the same as ln(lambda_t)
t.test(log_growth)$conf.int[1] 0.009301865 0.065083818
attr(,"conf.level")
[1] 0.95
Did the flock grow over the whole series? Now put yourself in 1950, with only the counts up to then: use filter(cranes, winter <= 1950). Could you have said whether the flock was recovering?
Your answer:
# your code hereSolution.
early <- filter(cranes, winter <= 1950)
early_log_growth <- diff(log(early$count))
mean(early_log_growth)[1] 0.04530129
t.test(early_log_growth)$conf.int[1] -0.08613603 0.17673860
attr(,"conf.level")
[1] 0.95
Over all 77 years the interval lies above zero: the flock grew. Up to 1950 the best estimate is similar, 4.5% a year, but the interval runs from a clear decline to fast growth. With about thirty birds and twelve years of counts, nobody in 1950 could have known whether the cranes were recovering or slipping towards extinction. “No significant trend” did not mean “no trend”.
First, test the test
Before trusting a test, check that it behaves when you know the answer. A good test should rarely find a trend that is not there. Simulate flocks with no trend at all (\(\lambda = 1\)) and see how often the test is fooled:
finds_trend <- function(counts) {
interval <- t.test(diff(log(counts$N)))$conf.int
interval[2] < 0 | interval[1] > 0 # TRUE if the interval excludes zero
}
false_alarms <- replicate(1000, finds_trend(
simulate_counts(N0 = 100, lambda = 1, sd_log = sd_cranes, years = 10)))
mean(false_alarms)[1] 0.048
About 5% of the time, which is what a 95% interval promises. Now try the straight line through \(\ln N\) from Part 2, used in the same way:
finds_trend_regression <- function(counts) {
interval <- confint(lm(log(N) ~ year, data = counts))["year", ]
interval[2] < 0 | interval[1] > 0
}
false_alarms_regression <- replicate(1000, finds_trend_regression(
simulate_counts(N0 = 100, lambda = 1, sd_log = sd_cranes, years = 10)))
mean(false_alarms_regression)[1] 0.569
How often does the regression find a trend that is not there? Why could it be fooled? Hint: in a real flock, does a bad winter lower only that winter’s count, or every count after it?
Your answer:
Solution. The regression finds a trend in about half of the flocks that have none. It treats each count as an independent point scattered around a line. But birds that die in a bad winter are missing from every count that follows, and a good year’s chicks are there in all later years. So the population drifts up or down by chance, and a drifting series often looks like a trend. The yearly changes do not carry over in this way, which is why the test on \(\ln\lambda_t\) works. You would not have spotted this without trying both methods on data where you knew the answer.
Often missed. The regression is fooled in about 57% of the flocks, not 5%: 5% is what a good test should give. The cause is not a single outlier but drift: a bad winter lowers every count after it.
Power: how often would we notice a real decline?
Now give the simulated flocks a real decline of 2% a year (\(\lambda = 0.98\)) and count how often the test notices it. That proportion is the power of the monitoring:
detects_decline <- function(years) {
counts <- simulate_counts(N0 = 100, lambda = 0.98, sd_log = sd_cranes, years = years)
interval <- t.test(diff(log(counts$N)))$conf.int
interval[2] < 0
}
power_10_years <- mean(replicate(1000, detects_decline(10)))
power_10_years[1] 0.059
A 2% decline sounds small, but it halves a population in about 35 years.
How many years of counts would you need to notice this decline in at least 80% of cases? Write down a number first, then run the chunk below.
Your prediction:
power_by_length <- tibble(years = c(5, 10, 20, 40, 80)) |>
rowwise() |>
mutate(power = mean(replicate(500, detects_decline(years))))
ggplot(power_by_length, aes(x = years, y = power)) +
geom_line() +
geom_point() +
geom_hline(yintercept = 0.8, linetype = "dashed") +
scale_y_continuous(limits = c(0, 1)) +
labs(x = "Years of counts", y = "Power to detect a 2% yearly decline")(rowwise() makes mutate() work one row at a time, so each series length gets its own set of simulations.)
For a population that varies as much as the cranes, what does “no significant decline after 10 years” tell a manager? Apart from counting for longer, what could make a decline easier to detect?
Your answer:
Solution. Very little. Ten years of counts pick up a 2% decline only about 6% of the time, and even 80 years do not reach 80%. “No significant decline” is what you would most likely see whether the population is declining or not. A decline is easier to detect if it is steeper, if the population varies less from year to year, or if we measure more than just numbers: survival and breeding success often change before the count does (L10). For a real monitoring programme, these are the questions to ask before the counting starts, not after.
Often missed. A false alarm and low power are opposite errors. A false alarm finds a trend that is not there (the previous question); low power misses one that is. So “no significant decline” means neither “stable” nor “no action needed”.
You have finished the core. The optional parts below can wait; if you stop here, go straight to the Wrap-up at the end.
Part 5 — Your turn: beavers (optional)
If you have time left, try the same analysis on your own. The file data/beaver.csv holds yearly counts of a beaver population from 1919 to 1981, used in earlier years of this course. The values are separated by semicolons, so read it with read_delim("data/beaver.csv", delim = ";"). The count for 1978 (69, between 55,139 and 109,663) is an error in the data, perhaps 69,000 with the zeros lost; leave that year out.
- Plot the counts, on a normal and on a log scale.
- Estimate \(\lambda\), \(r\), the doubling time and the 95% interval of \(r\).
- How variable are the beavers compared with the cranes, and what does that mean for detecting a trend?
# your code hereSolution.
beavers <- read_delim("data/beaver.csv", delim = ";")
ggplot(beavers, aes(x = Year, y = Population)) +
geom_point() +
scale_y_log10() +
labs(x = "Year", y = "Beavers (log scale)")# set 1978 to missing rather than deleting the row: every step stays one year long
beavers_clean <- mutate(beavers, Population = if_else(Year == 1978, NA, Population))
beaver_log_growth <- na.omit(diff(log(beavers_clean$Population))) # drops 1977-78 and 1978-79
c(r = mean(beaver_log_growth), sd = sd(beaver_log_growth)) r sd
0.02798622 0.83293346
t.test(beaver_log_growth)$conf.int[1] -0.1871833 0.2431557
attr(,"conf.level")
[1] 0.95
“Leave that year out” in the question means leaving out its count, not its row: deleting the 1978 row would make diff() treat 1977 to 1979 as one year, and that two-year jump would raise the estimate from about 3% to about 4% a year. On average the beavers grew a little more slowly than the cranes, about 3% a year, but they varied about seven times as much from year to year. Even with 60 years of counts, the interval for \(r\) includes both decline and fast growth. Swings this large are more than a population of beavers can do on its own; they suggest that the counting method changed over the years, or that the numbers are not all counts of the same kind.
Wrap-up
- How fast did the whooping cranes grow, and how sure are you? Give one number with its uncertainty.
- What does that number take for granted? Think about how the flock was counted (since 2011 the numbers are estimates from aerial surveys, not full counts), whether a chick and a breeding adult are really equal, and whether birds join or leave the flock.
- A manager tells you that a population shows “no significant decline” after 10 years of counts. What do you say?
Your answers:
Solution.
- r is about 0.037 a year (about 4%), with a 95% interval from 0.009 to 0.065 (the
t.test()of Part 4): the flock grew. - That every bird was counted once and only once, by the same method throughout, although since 2011 the numbers are estimates from aerial surveys; that a chick counts as much as a breeding adult; and that the flock changes only through births and deaths, not through birds joining or leaving.
- That with counts as variable as these, ten years detect a real 2% decline only rarely, so “no significant decline” says little. Ask about the power, and look at survival and breeding success.
Often missed. “One number with its uncertainty” means r with its 95% interval. The uncertainty of r is its interval, not the SD of the yearly changes (about 0.1): that SD is the spread of single years. Nor is r ± SD an interval; t.test() divides the SD by the square root of the number of years.
What was unclear, too long, redundant or missing?
Your feedback:
Before you leave. Render this file and upload it as Lastname_P01.html to your Participant Drop Box in OLAT.
Next time. Today every crane counted the same, a chick as much as a breeding adult. In P2 you follow individuals through their life cycle, using a matrix model.