View source: R/prep_functions.R
prep_cp_data | R Documentation |
Count prior visits assocatied with a given condition for preparation in finding a changepoint
prep_cp_data(time_map_data, event_name, start_day = 1L, by_days = 1L)
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.