sim.one.eventcount: Simulate a BSD process and return sufficient statistics with...

Description Usage Arguments Value Examples

View source: R/bsd_package.R

Description

Simulates a birth-shift-death process and records the number of births, deaths, and shifts, as well as total particle time, over the observation interval until time t.end. Used toward simulation functions that check accuracy of expected restricted moment calculations

Usage

1
  sim.one.eventcount(t.end, lam, v, mu, initNum)

Arguments

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

initNum

An integer, initial total number of particles

Value

A vector of four numbers giving total copies, shifts, deaths, and particle time, respectively.

Examples

1
sim.one.eventcount(2,.2,.12,.15,10)

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