Skip to contents

Main functions

read_diag_data()
Read and validate the structure of diagnostic data
read_admin_data()
Read and validate the structure of administrative (sociodemographic) individual-level data
filter_diag_data()
Validate and filter diagnostic data by selected ICD-10 or ICPC-2 codes
filter_admin_data()
Filter administrative (sociodemographic) data by selected filtering parameters
curate_diag_data()
Curate diagnostic data
link_diag_admin()
Link diagnostic and demographic datasets using unique personal identifiers
calculate_incidence()
Calculate incidence rates
calculate_prevalence()
Calculate prevalence rates
calculate_prevalence_series()
Calculate prevalence series rates
calculate_incidence_series()
Calculate incidence series rates
plot_rates()
Plot prevalence/incidence rates
plot_map()
Plot spatial data

Helper functions

synthetic_data()
Create synthetic diagnostic, time-varying and time-invariant individual level data
get_population_ssb()
Get yearly population data from SSB, by region, sex and age.
harmonize_municipality_codes()
Harmonize old municipality codes in Norway to 2024 municipality codes

Example datasets

diag_df
Example diagnostic individual-level data
invar_df
Example time-invariant individual-level data
var_df
Example time-variant individual-level data
linked_df
Example linked individual-level data
kommuner_2016
Norwegian municipalities valid in 2016