count_prior_events_truven: Count prior visits assocatied with a given condition

Description Usage Arguments

View source: R/main_delay_funcs.R

Description

Count prior visits assocatied with a given condition

Usage

1
2
3
4
5
6
count_prior_events_truven(
  time_map_data,
  event_name,
  start_day = 1L,
  by_days = 1L
)

Arguments

time_map_data

A timemap with indicators for specific events (i.e. diagnoses during a given visit)

event_name

The variable name for the even indicator

start_day

When to start counting prior to the index

by_days

The number of days in each bin to count by


aarmiller/delayDX documentation built on July 11, 2021, 4:01 p.m.