Skip to contents

A quick reference to every column produced by simulate_hr_agent(): its role in the causal structure and what it means. Handy to print() when teaching, or to join onto output tables.

Usage

hr_variables()

Value

A tibble with columns variable, role, and description.

Examples

hr_variables()
#> # A tibble: 11 × 3
#>    variable    role                  description                                
#>    <chr>       <chr>                 <chr>                                      
#>  1 id          identifier            Patient identifier (repeats across interva…
#>  2 t_start     time                  Start of the (t_start, t_stop] risk interv…
#>  3 t_stop      time                  End of the risk interval (1 or 2).         
#>  4 on_drug     exposure              On the drug during this interval; the outc…
#>  5 drug1       exposure              Baseline dose (interval 1). A component of…
#>  6 drug2       exposure              Follow-up dose (interval 2); 0 until the f…
#>  7 prev_drug   exposure history      Dose in the previous interval; a predictor…
#>  8 heart_rate  confounder            Heart rate in the current interval (baseli…
#>  9 baseline_hr confounder            Resting heart rate at baseline (bpm). Conf…
#> 10 HR1         confounder + mediator Follow-up heart rate (bpm). Lowered by dru…
#> 11 death       outcome               Died during this interval (1 = yes).