rma_FGM: Simulate fitness effects under fishers geometric model

Description Usage Arguments Value Examples

Description

This function simulates fitness effects under a model in which the fitness distribution is simulated as coming from Fisher's geometic model

Usage

1
rma_FGM(n, start, Vm, Ve, Ut, FUN = gaussian_fitness)

Arguments

n

numeric, number of lines to simulate

start

numeric, vector describing the starting position relative to an optimum at teh origin (can take any number of dimensions)

Vm

numeric, variance in size of mutations

Ve

numeric, envrionmental variance

Ut

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

FUN,

function, fitness funciton

Value

numeric, a vector of fitnesses

Examples

1
2
3
set.seed(123)
w <- rma_FGM(100, start=c(0.04,-0.04), Ve=1e-4, Vm=0.003, Ut=2)
mean(w)

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