Check multiple declarative rules.
This function can be used to check several rules on event data. It needs an event log and a rule. Rules can be made with the following functions: absent(), and(), contains(), contains_between(), contains_exactly(), ends(), precedence(), response(), responded_existence(), starts(), succession(), xor().
check_rules(eventlog, ...)
eventlog |
Eventlog object |
... |
Name-rule pairs. |
An annotated event log, where - for every rule - a new column indicates whether the rule holds or not. The name of each rule becomes the name of the column.
library(eventdataR) # check whether MRI Scan is preceded by Blood test, and the case starts with Registration check_rules(patients, rule1 = precedence("Blood test","MRI SCAN"), rule2 = starts("Registration"))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.