Description Usage Arguments Value
An agent-based model of cultural transmission that incorporates content bias, frequency bias, and demonstrator bias, as well as changes in population size.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
priors |
A dataframe of priors with the follow columns: ini_pop, ini_syls, innov, dem, p_att, a, v. Each row corresponds to an iteration of the model. |
surv |
Average overwinter survival. |
pop_trends |
A vector of populations trends. |
obs_years |
Years with observed data. |
obs_n |
Sample size in years with observed data. |
rep_m |
Mean repertoire size across observed dataset. |
rep_sd |
Standard deviation of repertoire size across observed dataset. |
males_only |
Whether only males are included in simulation (TRUE/FALSE). |
burn |
Length of burn-in phase. |
n_iter |
Number of iterations. |
n_cores |
Number of cores used in the learning step. For large population and repertoire sizes it may be faster to run the ABM function serially (n_cores = 1) in a parallelized for loop. |
Returns a list of two matrices: (1) the Simpson's diversity from each burn-in year (column) and iteration (row); (2) the summary statistics corresponding to each observed year (subsequent columns) and iteration (row). The returned summary statistics are the proportion of syllables that only appear once, the proportion of the most common syllable type, the number of syllable types, Simpson's diversity index, Shannon's diversity index, Pielou's evenness index, and the exponent of the fitted power-law function to the progeny distribution.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.