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

Description Arguments See Also Examples

Description

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

Arguments

lb

A numeric scalar and it is the rate of linear Birth. If the Markov chaindoesn't contain linear Birth, setting lb to zero. Default value of lb is zero.

ld

A numeric scalar and it is the rate of linear Death. If the Markov chain doesn't contain linear Death, setting ld to zero. Default value of ld is zero.

im

A numeric scalar and it is the rate of Immigration. If the Markov chain doesn't contain Immigration, setting im to zero. Default value of im is zero.

em

A numeric scalar and it is the rate of Emigration. If the Markov chain doesn't contain Emigration, setting em to zero. Default value of em is zero.

nstate

An integer. Size of statespace of this Birth-death process,

See Also

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

bd_rate will return the generator matrix by given birth-death rates for a linear 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
A <- new("stat2003.bd", lb = 1, ld = 1, im = 3, em = 4,
nstate = 0)

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