Description Usage Arguments Details Value
View source: R/encounter_metrics.R
time_off_intervention
returns the time an encounter has been off the
specified intervention within the first 28 days.
1 2 | time_off_intervention(enc_info_df, interventions_df, intervention_name,
time_units)
|
enc_info_df |
|
interventions_df |
|
intervention_name |
|
time_units |
|
Computes time time off since the last event of the specified intervention, in the first 28 days, per encounter. Missing values are imputed with NAs, as encounters with no events of the specified interventions are assumed to not have had that intervention. The function currently works only for interventions that have both a start time and end time.
data_frame:
chr
: patient_id_encounter
num
: time off intervention_name
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.