benchmark {DAISIEprep} | R Documentation |
Performance analysis of the extract_island_species() function Uses system.time() for timing for reasons explained here: https://radfordneal.wordpress.com/2014/02/02/inaccurate-results-from-microbenchmark/ # nolint
Description
Performance analysis of the extract_island_species() function Uses system.time() for timing for reasons explained here: https://radfordneal.wordpress.com/2014/02/02/inaccurate-results-from-microbenchmark/ # nolint
Usage
benchmark(
phylod,
tree_size_range,
num_points,
prob_on_island,
prob_endemic,
replicates,
extraction_method,
asr_method,
tie_preference,
log_scale = TRUE,
parameter_index = NULL,
verbose = FALSE
)
Arguments
phylod |
A |
tree_size_range |
Numeric vector of two elements, the first is the smallest tree size (number of tips) and the second is the largest tree size |
num_points |
Numeric determining how many points in the sequence of smallest tree size to largest tree size |
prob_on_island |
Numeric vector of each probability on island to use in the parameter space |
prob_endemic |
Numeric vector of each probability of an island species being endemic to use in the parameter space |
replicates |
Numeric determining the number of replicates to use to account for the stochasticity in sampling the species on the island and endemic species |
extraction_method |
A character string specifying whether the
colonisation time extracted is the minimum time ( |
asr_method |
A character string, either "parsimony" or "mk" determines
whether a maximum parsimony or continuous-time markov model reconstructs the
ancestral states at each node. See documentation in
|
tie_preference |
Character string, either "island" or "mainland" to
choose the most probable state at each node using the |
log_scale |
A boolean determining whether the sequence of tree sizes are on a linear (FALSE) or log (TRUE) scale |
parameter_index |
Numeric determining which parameter set to use (i.e which row in the parameter space data frame), if this is NULL all parameter sets will be looped over |
verbose |
Boolean. States if intermediate results should be printed to console. Defaults to FALSE |
Value
Data frame