Skip to contents

R package · Swedish registry data

Build incrementally-rebuildable person-week skeletons from Swedish healthcare registries, then run target trial emulations on top.

Get started Browse the reference →

swereg logo

What’s inside

01

Person-week skeletons

One row per person per ISO week from NPR, LMED, DORS, LISA, cancer and quality registries, with derived diagnosis, medication, and operation columns.

02

Incremental three-phase pipeline

Framework / randvars / codes phases, each with fingerprint-based invalidation. Edit one code entry and only that entry re-applies; edit a randvars step and it rewinds-and-replays everything downstream.

03

Target trial emulation

A YAML spec plus an R6 TTEPlan builds the ETT grid and runs parallel enrollment/IPW and sequential per-protocol censoring, producing analysis-ready files.