validate_incidence_model {rprev} | R Documentation |
Tests custom incidence models
Description
Runs checks to assess whether a custom incidence model is
suitable for use in prevalence
. Provides useful
diagnostic messages if any issues are encountered.
Usage
validate_incidence_model(object, data, timeframe = 3652)
Arguments
object |
An incidence model to be tested |
data |
Registry data in the form of a data frame. Ideally will be the same source that will be used for the prevalence estimation later on. |
timeframe |
How long to generate incident cases for in days. This is disease-specific, but the default of ten years should work well for most diseases. |
Value
The dummy incident population that has been generated to allow for further diagnostics to be run.
[Package rprev version 1.0.5 Index]