openpharma/crmPack

`tidy.IncrementsRelativeDLT` returns an incorrect value

Closed this issue · 0 comments

Compare

tidy(.DefaultIncrementsRelativeDLT())
# A tibble: 3 × 2
  intervals increments
      <int>      <dbl>
1         0       1   
2         1       0.33
3         3       0.2 

with, for example,

tidy(.DefaultCohortSizeRange())
# A tibble: 2 × 3
    min   max cohort_size
  <dbl> <dbl>       <int>
1     0    30           1
2    30   Inf           3

The latter is correct.

tidy.IncrementsDLT is missing a call to h_range_to_minmax.