rma_known_gamma: Simulate fitness effects with a known number of mutations and...

Description Usage Arguments Value Examples

Description

This function simulates fitness effects under a model in which the fitness distribution of mutations takes a Gamma distribution

Usage

1
rma_known_gamma(shape, rate, Ve, k, p_neutral)

Arguments

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

Value

w, numeric simulate fitness of each line

Examples

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)

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