rma_normal: Simulate fitness effects under of normal model

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_normal(n, a, Va, Ve, Ut)

Arguments

n

numeric, number of lines to simulate

a

numeric, mean fitness of mutations

Va

numeric, variance in fitness of mutations

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
4
set.seed(123)
w <- rma_normal(20, 0.1, 0.01, 0.01, 1)
dma_normal(w, 0.1, 0.01,0.01, 1)
dma_normal(w, 0.1, 0.01,0.01, 3)

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