Description Usage Arguments Value
This method defines the main behaviour of an incidence model and must be
implemented for any class to be used in prevalence
.
1 | draw_incident_population(object, data, timeframe, covars)
|
object |
The incidence model. |
data |
The original registry data frame passed into |
timeframe |
The amount of time in days in which to simulate incidence for. |
covars |
Any patient level covariates that must be included in the
new simulated incident population, as a character vector. These will
correspond to columns in |
A data frame where each row corresponds to a simulate incident
patient. The first column must be incidence time (in days). This
will be relative to an unspecified baseline. All covariates specified
in covars
must be present in this data frame.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.