prep_cp_data: Count prior visits assocatied with a given condition for...

View source: R/prep_functions.R

prep_cp_dataR Documentation

Count prior visits assocatied with a given condition for preparation in finding a changepoint

Description

Count prior visits assocatied with a given condition for preparation in finding a changepoint

Usage

prep_cp_data(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/delaySim documentation built on Jan. 2, 2023, 11:23 p.m.