| precedence | R Documentation |
Check for precedence between two activities.
If activity_b occured, it should be preceded by activity_a in the same case, i.e., if B was executed, it could not
have been executed before A was executed. For example, the trace [A,C,B,B,A] satisfies the precedence relation.
precedence(activity_a, activity_b)
activity_a |
|
activity_b |
|
Other Ordering rules:
ends(),
responded_existence(),
response(),
starts(),
succession()
library(bupaR)
library(eventdataR)
# A MRI Scan should be preceeded by a Blood test.
patients %>%
check_rule(precedence("Blood test","MRI SCAN"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.