Description Usage Arguments Details Author(s)
Calculates possible population structures at time t1 so that the observed sample could have been drawn at random from these structures.
1 | generate_initialPop<-function(iniSample, n_target_sim, alphaDirichlet)
|
iniSample |
vector containing the absolute frequencies of the observed cultural variant types at t1 |
n_target_sim |
number of population structures to be generated |
alphaDirichlet |
vector of size (k+1), where k stands for the number of variant types present at t1, containing the parameters of the Dirichlet distribution |
This function will generate a vector of size (k+1) containing relative frequencies of the variant types present at t1 in the population. The variant type (k+1) contains variants not observed in the sample. The estimation is based on the Dirichlet distribution and is independent of total population size. The resulting population structure has the property that the observed sample at t1 could have been drawn at random from it. Importantly, iniSample has to contain absolute frequencies.
Clementine Straub
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.