ddediu / AdhereR

Computation of adherence to medications from Electronic Healthcare Data in R
26 stars 6 forks source link

Add functions to compute event durations and time to initiation #9

Closed Masswear closed 6 years ago

Masswear commented 6 years ago

Hi, I have finished working on the compute_event_durations and compute_time_to_initiation functions. Documentation should be ok as well, but a proof-read would not harm I guess. Unit tests for compute_event_durations are updated as well. I have not written unit tests for compute_time_to_initiation. No vignette so far, will have to wait for the next update.

At the moment, compute_event_durations does not use the parallel backend of AdhereR (but it has a progress bar). If you want to add it, line 785 in the matching_function.R file would be the appropriate place.

If I have time, I will also add the CMA_per_prescription function, but I have to finish other tasks first.