Function detecting duration outliers for a particular activity
detect_duration_outliers(activitylog, ..., details, filter_condition)
activitylog | The activity log |
---|---|
... | for each activity to be checked, an argument "activity_name" = duration_within(...) to define bounds. See ?duration_within |
details | Boolean indicating wheter details of the results need to be shown |
filter_condition | Condition that is used to extract a subset of the activity log prior to the application of the function |
activitylog containing the rows of the original activity log for which activity duration outliers are detected Information on the presence of activity duration outliers
# \donttest{ data("hospital_actlog") detect_duration_outliers(activitylog = hospital_actlog, Treatment = duration_within(bound_sd = 1))#>#>#>#>#>#> # A tibble: 1 x 13 #> patient_visit_nr activity originator start complete #> <dbl> <chr> <chr> <dttm> <dttm> #> 1 523 Treatme~ Nurse 17 2017-11-21 18:26:04 2017-11-21 18:55:00 #> # ... with 8 more variables: triagecode <dbl>, specialization <chr>, #> # duration <dbl>, mean <dbl>, sd <dbl>, bound_sd <dbl>, lower_bound <dbl>, #> # upper_bound <dbl># }