imdeath: Simulate a sample path from the homogeneous immigration-death...

Description Usage Arguments Value See Also Examples

View source: R/imdeath.R

Description

This function simulates a single realisation from a time-homogeneous immigration-death process.

Usage

1
imdeath(n=20,x0=0,lambda=1,mu=0.1)

Arguments

n

The number of states to be sampled from the process, not including the initial state, x0

x0

The initial state of the process, which defaults to zero.

lambda

The rate at which new individual immigrate into the population. Defaults to 1.

mu

The rate at which individuals within the population die, independently of all other individuals. Defaults to 0.1.

Value

An R stepfun object containing the sampled path of the process.

See Also

rcfmc, rdiff, stepfun, gillespie

Examples

1

smfsb documentation built on Aug. 30, 2018, 5:04 p.m.