get_incidence_data: Prepare a time map for incidence modeling

Description Usage Arguments Value Examples

View source: R/model_functions.R

Description

Prepare a time map for incidence modeling

Usage

1
get_incidence_data(time_map, demo_data, change_point, days_before = -1)

Arguments

time_map

A time map in the format of the package example

demo_data

A dataframe of demographic data for the enrollees

change_point

The changepoint on which to base the dataset (must be <=-1)

days_before

Number of days before index to start classifying as a miss

Value

A dataframe containing the outcome "miss" and covariates for each row

Examples

1
get_incidence_data(time_map=final_time_map, demo_data=demographics, change_point=-90, days_before= -1)

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