Skip to contents

Classifying diabetes

Main functions for classifying diabetes.

algorithm()
A list of the algorithmic logic underlying osdc.
classify_diabetes()
Classify diabetes status using Danish registers.

Documentation and examples

Functions used in the documentation and examples.

prepare_lpr2()
Prepare and join the two LPR2 registers to extract diabetes and pregnancy diagnoses.
prepare_lpr3a()
Prepare and join the two LPR3A registers to extract diabetes and pregnancy diagnoses.
prepare_lpr3f()
Prepare and join the two LPR3F registers to extract diabetes and pregnancy diagnoses.
join_registers()
Join prepared registers
registers()
Register variables (with descriptions) required for the osdc algorithm.
simulate_registers()
Simulate a fake data frame of one or more Danish registers
edge_cases()
Create a synthetic dataset of edge case inputs
non_cases()
List of non-cases to test the diabetes classification algorithm
non_cases_metadata()
Description of the different non-cases included in non_cases()