lower_threshold
The lower duration threshold, specified in number of days.
When reverse
is FALSE, all cases with a lower duration are discarded.
upper_threshold
The upper duration threshold, specified in number of days.
When reverse
is FALSE, all cases with a higher duration are discarded.
percentile_cut_off
Alternatively to providing thresholds, a percentile cut off can be provided.
A percentile cut off value of 0.9 will return the 90% shortest cases.
When reverse
is set to TRUE, it will return the 10% longest cases.