simulate_reproduction | R Documentation |
This function simulates the life history of mothers and extract information about simulated
individuals. The argument effect_pt
can be used to simulate an increased (or reduced) twinning
propensity.
simulate_reproduction(
birth_level_data,
scenario,
life_history_fits = NULL,
effect_pt = 0,
N_replicates = 100L,
seed = 1L,
nb_cores = 2L,
lapply_pkg = "pbmcapply"
)
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 |
effect_pt |
a numerical value defining by how much the intercept of |
N_replicates |
the number of simulation replicates to run |
seed |
an |
nb_cores |
the number of CPU core(s) to use |
lapply_pkg |
the R package used to implement a |
a tibble containing information about the reproductive life of the simulated mothers
## See ?twinR
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.