Description Usage Arguments Value See Also Examples

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

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

`n` |
The number of states to be sampled from the process, not including the initial state, |

`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. |

An R `stepfun`

object containing the sampled path of the process.

`rcfmc`

, `rdiff`

,
`stepfun`

, `gillespie`

1 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.