View source: R/killerWhaleExtinction.R
killerWhaleExtinction | R Documentation |
Perform simulations to evaluate the risk that southern resident killer whales will drop below the quasi-extinction threshold (4) over the next 100 years, given the data on total killer whale counts. The model simulates 10,000 random population runs, under three scenarios
"base", where parameters are assumed to be known and the lambdas are independent
"autocorrelation" where the log-lambdas are presumed to be autocorrelated
"uncertainty" where we admit uncertainty in the estimates of the mean and standard deviation of the log lambdas
killerWhaleExtinction(model.type = "base", viewcode = FALSE)
model.type |
is character that is either 'base', 'autocorrelation', or 'uncertainty', associated with the three scenarios in Table 5.1. |
viewcode |
TRUE or FALSE (default) indicating whether to print the function code |
the estimated probability of extinction over the next 100 years, and plots Figures 5.5 and 5.6.
# Run the base model
extinct.base <- killerWhaleExtinction(model.type = "base")
# Run the uncertainty model
extinct.uncertainty <- killerWhaleExtinction(model.type = "uncertainty")
# View the code
killerWhaleExtinction(viewcode = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.