Description Usage Arguments Value
A time to event simulation is run for subjects specified by
startCounts
Each subject is simulated until enough time has
passed so that the rate matrices will no longer switch and the
subject cannot transition into another state
All rates which have been defined as formulae must be evaluated
before calling this function See
EvaluateFormula.EventSim
. If this is not the case
then an error message will be displayed
1 | Simulate.EventSim(object, startCounts, seed = NULL, duration = Inf)
|
object |
An |
startCounts |
A vector containing nodeNames and number of
subjects starting in this node, for example
|
seed |
Random seed (for recruitment) |
duration |
The patient time at which the simulation should end. |
A list containing a data frame ("data") containing columns id, state, patient_transition_time which describe which patient transitions into which state at which patient_time and a vector or recruitment times (recruitmentTimes)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.