View source: R/DAISIE_sumstats_rates.R
DAISIE_calc_sumstats_pcrates | R Documentation |
Calculates the summary statistics of per capita rates throught an ontogeny simulation
DAISIE_calc_sumstats_pcrates( pars, total_time, area_pars, hyper_pars, island_ontogeny = 1, sea_level = 0, extcutoff = 100, mainland_n = 1000, resol = 100 )
pars |
A numeric vector containing the model parameters:
Elements 6:10 are required only when type 2 species are included
or in the rate shift model. For |
total_time |
Numeric defining the length of the simulation in time units. |
area_pars |
A named list containing area and sea level parameters as
created by
|
hyper_pars |
A named list of numeric hyperparameters for the rate
calculations as returned by
|
island_ontogeny |
In |
sea_level |
In |
extcutoff |
A numeric with the cutoff for the the maximum extinction rate preventing it from being too large and slowing down simulation. |
mainland_n |
A numeric stating the number of mainland species, that is the number of species that can potentially colonize the island. If using a clade-specific diversity dependence, this value is set to 1. If using an island-wide diversity dependence, this value is set to the number of mainland species. |
resol |
numeric for resolution of summary stats calculation. Should be > 1. |
A named list with mean and median values of specified parameters
Pedro Neves
pars <- c(0.01, 1, 20, 0.01, 1) area_pars <- create_area_pars( max_area = 13500, current_area = 3500, proportional_peak_t = 0.1, total_island_age = 15, sea_level_amplitude = 0, sea_level_frequency = 0, island_gradient_angle = 0 ) hyper_pars <- create_hyper_pars(d = 0.2, x = 0.1) island_ontogeny <- 1 sea_level <- 0 extcutoff <- 1100 resol <- 100 total_time <- 10 mainland_n <- 1000 mean_med <- DAISIE:::DAISIE_calc_sumstats_pcrates( pars = pars, total_time = total_time, area_pars = area_pars, hyper_pars = hyper_pars, island_ontogeny = island_ontogeny, sea_level = sea_level, extcutoff = extcutoff, mainland_n = mainland_n, resol = resol )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.