None
TransmissionBias
Agent-Based Model of Biased Cultural Transmission
This package includes an agent-based model (ABM) of cultural transmission that simulates the three main forms of transmission bias: content bias, frequency bias, and demonstrator bias. While it was designed to simulate the cultural transmission of birdsong, it is theoretically generalizable to any cultural system where individuals learn a repertoire (or a set) of cultural traits. The ABM is based on Lachlan et al. (2018), but has been expanded to allow for dynamic population size. The back-end of the learning step of the ABM was written in C++ to minimize computation time. This package requires both Rcpp and C++ 11.
A basic example of the core ABM function is below. In this example, the priors allow for a relatively small population size (100-200), and the simulation is run for one iteration of three years with no burn-in phase. You can access the detailed documentation of the ABM function by entering ?ABM in R:
```n_iter <- 1
priors <- data.frame(inipop = round(runif(niter, 100, 200)), #uniform: 100-200 inisyls = round(KScorrect::rlunif(niter, 5, 20)), #log uniform: 5-20 innov = KScorrect::rlunif(niter, 0.001, 0.1), #log uniform: 0.001-0.1 dem = round(KScorrect::rlunif(niter, 2, 10)), #log uniform: 2-10 patt = runif(niter, 0.01, 1), #uniform: 0.01-1 a = runif(niter, 0.25, 3), #uniform: 0.25-3 v = KScorrect::rlunif(niter, 0.01, 3)) #log uniform: 0.01-3
simulations <- ABM(priors = priors, poptrends = poptrends, obsyears = c(1, 2, 3), obsn = c(20, 20, 20), repm = 10, repsd = 2, burn = 0, niter = niter, n_cores = 1)```
To restore the repository download the bundle
wget https://archive.org/download/github.com-masonyoungblood-TransmissionBias_-_2021-07-01_11-24-26/masonyoungblood-TransmissionBias_-_2021-07-01_11-24-26.bundle
and run:
git clone masonyoungblood-TransmissionBias_-_2021-07-01_11-24-26.bundle
Source:
https://github.com/masonyoungblood/TransmissionBiasUploader:
masonyoungbloodUpload date: 2021-07-01