%0 Journal Article %T Automating incidence and prevalence analysis in open cohorts. %A Cockburn N %A Hammond B %A Gani I %A Cusworth S %A Acharya A %A Gokhale K %A Thayakaran R %A Crowe F %A Minhas S %A Smith WP %A Taylor B %A Nirantharakumar K %A Chandan JS %J BMC Med Res Methodol %V 24 %N 1 %D 2024 Jul 4 %M 38965539 %F 4.612 %R 10.1186/s12874-024-02266-7 %X BACKGROUND: Data is increasingly used for improvement and research in public health, especially administrative data such as that collected in electronic health records. Patients enter and exit these typically open-cohort datasets non-uniformly; this can render simple questions about incidence and prevalence time-consuming and with unnecessary variation between analyses. We therefore developed methods to automate analysis of incidence and prevalence in open cohort datasets, to improve transparency, productivity and reproducibility of analyses.
METHODS: We provide both a code-free set of rules for incidence and prevalence that can be applied to any open cohort, and a python Command Line Interface implementation of these rules requiring python 3.9 or later.
UNASSIGNED: The Command Line Interface is used to calculate incidence and point prevalence time series from open cohort data. The ruleset can be used in developing other implementations or can be rearranged to form other analytical questions such as period prevalence.
BACKGROUND: The command line interface is freely available from https://github.com/THINKINGGroup/analogy_publication .