med_data aims to mimic data from Dispensed Drug Registry (Läkmedelsregistret).

med_data

Format

A data frame with 500 rows and 10 variables:

id

Patient id. Not unique. Integer.

ATC

ATC code. Character.

indexdtm

Index date. Combination id and date is unique. Date.