length_of_intervention: Total length of a specific intervention.

Description Usage Arguments Details Value

View source: R/encounter_metrics.R

Description

length_of_intervention returns the total length of the specified intervention.

Usage

1
2
length_of_intervention(enc_info_df, interventions_df, intervention_name,
  time_units)

Arguments

enc_info_df

data frame: provides the encounters of interest

  • chr: patient_id_encounter

interventions_df

data frame: provides intervention events

  • chr: patient_id_encounter

  • chr: Variable.Name

  • POSIXct: Start.Time

  • POSIXct: End.Time

intervention_name

chr: names the intervention of interest

time_units

chr: time units to compute time difference in

Details

Computes the total length of intervention, per encounter. Encounters with no events of the specified interventions are assumed to not have had the intervention, and a value of zero is given. The function currently works only for interventions that have both a start time and end time.

Value

data_frame:


jcasse/icueval documentation built on May 18, 2019, 9:20 p.m.