knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(coder)
This vignette contains some example data used in the other vignettes.
ex_people
contains 100 patients (with random names from the randomNames
package) who received total hip arthroplasty (THA) surgery at given (random) dates (surgery
column). This data represent a sample from a national quality register.
See also ?ex_people
.
ex_people
We are interested in comorbidity for the patients above and have collected some synthesized diagnostics data (ex_icd10
) from a national patient register (we can at least assume that for now). Patients have one entry for every combination of recorded diagnoses codes according to the International classification of diseases version 10, icd10
, and corresponding dates of hospital admission
s for which those codes were recorded. (Column hdia
is TRUE
for main diagnoses and FALSE
for underlying/less relevant codes).
See also ?ex_icd10
.
ex_icd10
Assume we have some external code data from a national prescription register. Such register would likely cover additional patients but let's just consider a small sample with ATC codes for patients above, such that each patient can have zero, one, or several codes prescribed at different dates.
ex_atc
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.