rma_known_normal: Simulate fitness effects ith a known number of mutations per...

Description Usage Arguments Value Examples

Description

This function simulates fitness effects under a model in which the fitness distribution of mutations is normally distributed

Usage

1
rma_known_normal(a, Va, Ve, k, p_neutral)

Arguments

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

Value

numeric, a vector of fitnesses

Examples

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)

dwinter/dfe documentation built on May 15, 2019, 6:21 p.m.