simulateModelStochastic | R Documentation |
This function uses the function ssa.adaptivetau
to
simulate the model and returns the trajectories in a valid format for the
class fitmodel
.
simulateModelStochastic(theta, initState, times, transitions, rateFunc)
theta |
named vector of model parameters. |
initState |
named vector of initial state of the model. |
times |
time sequence for which state of the model is wanted; the first value of times must be the initial time. |
transitions |
One of two possible data types:
See the example below for details as well as
|
rateFunc |
R function that returns instantaneous transition rates for each
transition in the form a real-valued one-dimensional vector with
length equal to the number of transitions. The order of these
rates must match the order in which transitions were specified in
the
|
a data.frame of dimension length(times)x(length(initState)+1)
with column names equal to c("time",names(initState))
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.