Description Usage Arguments Value Author(s) See Also Examples
A function that takes a matrix containing the empirical proportion of individuals that leave origin i
for each date in the trip duration data and simulates one stochastic realization
of tau (the overall probability of leaving origin i). The function does so by calculating the mean and variance of p
for each origin i, and then derives the shape and rate parameters for the beta distribution.
1 | sim.tau(p)
|
p |
A matrix giving the observed proportion of individuals of leaving origin i for each day in the trip suration data |
a numerical vector with values between 0 and 1
John Giles
Other simulation:
calc.hpd()
,
calc.prop.inf()
,
calc.prop.remain()
,
calc.timing.magnitude()
,
calc.wait.time()
,
decay.func()
,
get.age.beta()
,
get.beta.params()
,
sim.TSIR.full()
,
sim.TSIR()
,
sim.combine.dual()
,
sim.combine()
,
sim.gravity.duration()
,
sim.gravity()
,
sim.lambda()
,
sim.pi()
,
sim.rho()
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.