Description Usage Arguments Value
This function is called by Simulate.EventSim
1 2 | gillespie(start_states, start_times, n_state, rates, patientEndTimes,
calendarEndTimes, shape, resetEdges, duration)
|
start_states |
an integer vector giving the start states for each patient |
start_times |
a numeric vector containing the calendar time at which each patient is recruited |
n_state |
an integer, the number of states on the underlying DAG |
rates |
A list of |
patientEndTimes |
The ith |
calendarEndTimes |
The ith |
shape |
The shape parameter for the edges in the DAG. A matrix where shape[i,j] is the Weibull shape parameter for the edge from node i to node j. If there is no edge between i and j then shape[i,j] = 0. |
resetEdges |
A vector (from1,to1,from2,to2,...) of edges for which if a subject traverses
one of these edges then patient time switches are reset. See |
duration |
The total (patient) time each subject is to be simulated |
A data frame with columns "id", "state" and "patient_transition_time" listing the (patient) time at which patients transition into new states. For example
id state patient_transition_time 1 1 0.0 1 2 1.4
patient 1 transitions to state 1 at time 0 (w.r.t. patient time) and then at time 1.4 transitions to state 2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.