gs_BL | R Documentation |
Uses the equations laid out in Burger and Lynch 1995 to estimate the average size of a population overtime as the optimum phenotype changes. While some processes are modeled as stochastic, this returns the mean population sizes over time, and so is not stochastic itself.
gs_BL(
phenotypes,
h,
K,
omega,
B,
var.theta,
k,
gens = Inf,
n = NULL,
nloci = NULL,
alpha = NULL,
mu = NULL
)
phenotypes |
numeric. Vector of initial phenotypes. |
h |
numeric. Heritability of the trait. |
K |
numeric. Carrying capacity. Individuals surviving selection will be randomly culled to this number. |
omega |
numeric. Width of the selection function. Smaller numbers equate to stronger selection around the optimum. |
B |
numeric. Number of offspring each surviving adult has. Not stochastic. |
var.theta |
numeric. Variance of the stochastic selection optimum. |
k |
numeric. Degree by which the optimum phenotype increases each generation (where mean(opt) = k*t). |
gens |
numeric, default Inf. Number of generations to iterate. |
n |
numeric, default NULL. Initial population size. If null, equal to the number of provided phenotypes. |
nloci |
numeric, default NULL. Number of effective loci. If nloci, alpha, and mu are all provided, the stochastic house of cards approximation of genetic variance is used to approximate changes in genetic variance each generation based only on changes in effective population size. |
alpha |
numeric, default NULL. Standard deviation of the effect of new mutations. If nloci, alpha, and mu are all provided, the stochastic house of cards approximation of genetic variance is used to approximate changes in genetic variance each generation based only on changes in effective population size. |
mu |
numeric, default NULL. Mutation rate. If nloci, alpha, and mu are all provided, the stochastic house of cards approximation of genetic variance is used to approximate changes in genetic variance each generation based only on changes in effective population size. |
If nloci, alpha, and mu are all provided, the stochastic house of cards approximation of genetic variance is used to approximate changes in genetic variance each generation based only on changes in effective population size. Otherwise, genetic variance is assumed to not change in each generation and is based solely on the genetic variance calculated from the provided heritability and phenotypes.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.