Learn R Programming

processcheckR (version 0.1.4)

responded_existence: Responded Existence

Description

Check for responded existence between two activities.

If activity_a occurs in a case, activity_b should also occur (before or after).

Usage

responded_existence(activity_a, activity_b)

Arguments

activity_a

character: Activity A. This should be an activity of the log supplied to check_rule.

activity_b

character: Activity B. This should be an activity of the log supplied to check_rule.

See Also

Other Ordering rules: ends(), precedence(), response(), starts(), succession()

Examples

Run this code
library(bupaR)
library(eventdataR)

# When a Blood test occurs, a MRI Scan should also have
# happened for this patient (before or after the test).

patients %>%
 check_rule(responded_existence("Blood test","MRI SCAN"))

Run the code above in your browser using DataLab