Skip to main content

Register-based research at Statistics Denmark

A guide in R, from research question to exported results

A guide in R for research with Danish registers on the Statistics Denmark (DST) server, from planning and data extraction to analysis and export.
Last modified

December 4, 2026

This guide is for researchers who do register-based studies on the Statistics Denmark (DST) research servers and do the data work themselves in R.

It assumes that your project already has access to DST and that your registers have been delivered. It does not cover how to apply for data, and it does not teach statistical methods: the analysis pages show which R tools fit a register study and point to courses and books for the theory.

One assumption runs through almost all the code: your project’s registers are stored as parquet files, and you read them by name with the R package fastreg, as in read_register("bef"). Set up register reading checks whether that holds for your project and says what to do if it does not.

Reading SAS files today? Three pages change your daily work: Your project folder and its file types, Set up register reading, and Read a register.

Already working on DST? Go to what you need

The menu is grouped by what you are trying to do:

Start here: set up and read a register

You do not need experience with registers. Do these seven steps in order:

  1. Plan your study
  2. R: the bare essentials (skip it if you know R)
  3. Log in to DST
  4. Your project folder and its file types
  5. Set up register reading (parquet and fastreg)
  6. Read a register: open, filter, select, collect, then inspect what you got back
  7. Check what your project received

Know DST, but new on a project? Do Set up register reading and Check what your project received again. No access to DST yet? The practice run on synthetic data does a complete extraction on your own computer.

Want to help?

If you have reusable code for register work, for example weighted medication use or building episodes, drafts are welcome. Want to help? says what is most useful and how to send it.

Back to top