run_simulation | R Documentation |
This function runs a single simulation. If the fits of the life history models are not provided, they will be fitted within the function call.
run_simulation(
birth_level_data,
scenario = NULL,
life_history_fits = NULL,
seed = 123L,
output = list(birth_level_data.simulated = FALSE, slope = TRUE, fits = FALSE),
timeout = Inf,
verbose = list(fit = FALSE, simu = FALSE)
)
birth_level_data |
a |
scenario |
the scenario defining which models to be fitted: e.g. "ABCD", "AC"... (see paper for explanations) |
life_history_fits |
a named list containing the fits of each three life history models |
seed |
an |
output |
a named list of booleans with elements |
timeout |
the maximal duration (in seconds) allowed for the fitting procedure (default = Inf) |
verbose |
whether to display the formula of the fit during the fitting procedure |
The output is conditional on the input so to save memory footprint and only return whatever is needed for a given application.
a list with the output requested
simulate_slopes
# See ?twinR
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.