Description Usage Arguments Value Examples
This function simulates fitness effects under a model in which the fitness distribution of mutations is normally distributed
1 | rma_known_normal(a, Va, Ve, k, p_neutral)
|
a |
numeric, mean fitness of mutations |
Va |
numeric, variance in fitness of mutations |
Ve |
numeric, envrionmental variance |
k |
integer, total number of mutations for each line |
p_neutral |
numeric, (global) proportion of those mutation with no fitness effect |
numeric, a vector of fitnesses
1 2 3 4 | set.seed(123)
k <- rpois(20,9)
w <- rma_normal(a=0.1, Va=0.01, Ve=0.01, k=k, p_neutral=0.7)
mean(w)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.