Description Usage Arguments Value
View source: R/test_custom_models.R
Runs checks to assess whether a custom survival model is
suitable for use in prevalence
. Provides useful
diagnostic messages if any issues are encountered.
1 | validate_survival_model(object, data, timeframe = 3652, sample_size = 10)
|
object |
The custom survival object. |
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 |
Maximum time at which to test survival probability in days. If not supplied then chooses random values over a period of 10 years, which should be suitable for many diseases. |
sample_size |
The number of randomly drawn individuals to predict sample size for. |
None. Instead, messages get displayed to the console.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.