prevalence
function.Runs checks to assess whether a custom survival model is
suitable for use in prevalence
. Provides useful
diagnostic messages if any issues are encountered.
validate_survival_model(object, data, timeframe = 3652, sample_size = 10)
The custom survival object.
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.
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.
The number of randomly drawn individuals to predict sample size for.
None. Instead, messages get displayed to the console.