rma_gamma: Simulate fitness effects under of Gamma model

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_gamma(n, shape, rate, Ve, Ut)

Arguments

n

numeric, number of lines to simulate

shape

numeric, shape parameter for Gamma

rate

numeric, Scale paramater for Gamma

Ve

numeric, envrionmental variance

Ut

numeric, expected number of mutations over the length of the experiment

Value

numeric, a vector of fitnesses

Examples

1
2
3
set.seed(123)
w <- rma_gamma(20, shape=0.1, rate=2, Ve=1e-4, Ut=3)
dma_gamma(obs=w, shape=0.1,rate= 2, Ve=1e-4, Ut = 3)

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