View source: R/panel_data_epidemics.R
Function aim:
1 | start_state(subject, prev_state)
|
Take a event table, which is output from an Epidemic Gillespie algorithm, and return panel data on the number of each possible transitions that happened between the specified observation points.
An event table will have a few things. For each event, there will be ...
Time of event ID of individual State of Individual after event State of Individual before event Covariates of individual
Then we can give panel_data.epidemics the event table perhaps tell it a subset of individuals we want to observe also, and got transition panel data out.
function to keep transitions with zero transition count in table
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.