simulate_burnin: Simulate burn-in

View source: R/simulate_burnin.R

simulate_burninR Documentation

Simulate burn-in

Description

Simulates trait evolution during the burn-in period.

Usage

simulate_burnin(xstart, ntimes, pars, mu = 0.01, sigma = 0.1)

Arguments

xstart

Starting trait value

ntimes

The number of time steps to simulate for

pars

An unevaluated parameter-list (e.g. as returned by get_default_pars)

mu

The mutation rate of the trait (per time step)

sigma

The (standard deviation of) mutational step size upon mutation

Details

See ?simulate.

Value

A tibble containing the trait value of the population at each time point

See Also

find_equilibrium_burnin, get_gradient_burnin

Examples


pars <- get_default_pars()
simulate_burnin(0, 10, pars)


rscherrer/speciomx documentation built on March 28, 2023, 8:49 p.m.