Check for precedence between two activities.
If activity B occured, it should be preceded by activity A in the same case.
precedence(activity_a, activity_b)
activity_a |
Activity A. A character vector of length one. This should be an activity of the event log supplied to 'check_rule'. |
activity_b |
Activity B. A character vector of length one. This should be an activity of the event log supplied to 'check_rule'. |
Other Declarative Rules:
absent()
,
and()
,
contains_between()
,
contains_exactly()
,
contains()
,
ends()
,
responded_existence()
,
response()
,
starts()
,
succession()
,
xor()
library(bupaR) library(eventdataR) # A MRI Scan should be preceeded by a Blood test. patients %>% check_rule(precedence("Blood test","MRI SCAN"))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.