ransim.N.true: Simulate N realizations from the BSD process, each with...

Description Usage Arguments Value Examples

View source: R/bsd_package.R

Description

Repeats sim.one.ran N times using replicate. Each replication begins with a random number of initial particles uniformly generated from a specified range.

Usage

1
  ransim.N.true(N, t.end, lam, v, mu, range)

Arguments

N

An integer, the number of realizations to simulate

range

A vector containing possible initial populations, typically a sequence of integers

t.end

A number giving the length of time for the simulation

lam

Per-particle birth rate

v

Per-particle shift rate

mu

Per-particle death rate

Value

A 3 by N matrix; each ith column corresponds to the ith realization. The first row contains initial numbers, the second row contains the number of original indices still present in the population by t.end, and the third row contains the number of new indices present.

Examples

1
ransim.N.true(5,2,.2,.12,.15, seq(7,15))

jasonxu90/bdsem documentation built on May 18, 2019, 5:54 p.m.