Description Usage Arguments Value Examples
This function simulates fitness effects under a model in which the fitness distribution of mutations takes a Gamma distribution
1 | rma_known_gamma(shape, rate, Ve, k, p_neutral)
|
shape |
numeric, shape parameter for Gamma |
rate |
numeric, Scale paramater for Gamma |
Ve |
numeric, envrionmental variance |
k |
integer, total number of mutations in each line |
p_neutral, |
proportion of mutations with no fitness effect |
n |
numeric, number of lines to simulate |
w, numeric simulate fitness of each line
1 2 3 | k <- stats::rpois(20, 9)
w<- rma_known_gamma(shape=1, rate=20, Ve=0.01, k=k, p_neutral=0.4)
mean(w)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.