make_spell_table: make_spell_table

View source: R/spell_linkage.R

make_spell_tableR Documentation

make_spell_table

Description

make_spell_table

Usage

make_spell_table(
  ed_data,
  inpatient_data,
  same_type_episode_lag = 1,
  different_type_episode_lag = 6
)

Arguments

ed_data

standard ED data

inpatient_data

standard inpatient data

same_type_episode_lag

the maximum amount of time two episodes of the same type can be separated by and still be classified as part of the same spell.

different_type_episode_lag

the maximum amount of time two episodes of different type can be separated by and still be classified as part of the same spell.

Value

named list containing the spell table and the all_episodes table


HorridTom/hospitalflow documentation built on June 14, 2022, noon