validate_incidence_model: Tests custom incidence models

Description Usage Arguments Value

View source: R/test_custom_models.R

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

1
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.


rprev documentation built on May 4, 2021, 5:08 p.m.