bd_rate: Generator matrix for a birth-death-immigration-emigration...

Description Usage Arguments Value See Also Examples

Description

bd_rate is used to produce generator matrices (rate matrices) of the input process.

Usage

1
bd_rate(BD, showstate = 0)

Arguments

BD

is an object in class 'stat2003.bd'

showstate

If there are so many statespace, and users just want to take first n elements of the generator matrix, setting showstate = n. If showstate = 0, bd_rate will return whole generator matrix. Default value of showstate is zero.

Value

bd_rate will return the generator matrix by given rates.

See Also

stat2003.bd-class A class type of linear birth-death in stat2003 package.

bd_equi will return the equilibrium distribution of a birth-death process.

bd_trans will return the transition matrix by given birth-death rates for a linear birth death process.

bd_simu simulates a finite statespace Birth-death process by returning a plot about states and time.

Examples

1
2
3
4
A <- new("stat2003.bd", lb = 1, ld = 1, im = 3, em = 4,
nstate = 0)

bd_rate(A, 4)

paulnorthrop/stat2003 documentation built on May 24, 2019, 10:31 p.m.