Skip to content

Commit

Permalink
add censoring indicator to data vignette
Browse files Browse the repository at this point in the history
  • Loading branch information
hillalex committed Oct 3, 2024
1 parent 4269ce6 commit b398d09
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions vignettes/data.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,18 @@ knitr::opts_chunk$set(

The model requires a data table containing the following columns:

pid: a unique numeric id to identify a person across observations
date: the date of the observation
last_exp_date: the last date on which the person was exposed
titre_type: the name of the titre
value: the value of the tire
censored: whether this observation should be censored
### pid
A unique numeric id to identify a person across observations
### date
The date of the observation
### last_exp_date
The last date on which the person was exposed
### titre_type
The name of the titre
### value
The value of the titre
### censored
Whether this observation should be censored: -2 for lower, -1 for me, 1 for upper, 0 for none

It can also contain further columns for any covariates to be included in the model. The data files installed with this package have additional columns infection_history, last_vax_type, and exp_num.

Expand Down

0 comments on commit b398d09

Please sign in to comment.