# Example from Dennis et al. (1991), Yellowstone grizzly bears
dat <- data.frame(Time = 1959:1987,
Population = c(44, 47, 46, 44, 46, 45, 46, 40, 39, 39, 42, 44, 41, 40,
33, 36, 34, 39, 35, 34, 38, 36, 37, 41, 39, 51, 47, 57, 47))
# Probability of decline to 1 individual within 100 years
ext_di(dat, th = 100)
# Probability of decline to 10 individuals within 100 years
ext_di(dat, th = 100, ne = 10)
# With QQ-plot
ext_di(dat, th = 100, qq_plot = TRUE)
# Change digits
ext_di(dat, th = 100, ne = 10, digits = 9)
Run the code above in your browser using DataLab