powered by
Function detecting missing related activity registration, i.e. detecting activities that should be registered for a case because another activity is registered for that case
detect_related_activities( activitylog, antecedent, consequent, details, filter_condition )
Numeric vector containing the case identifiers of cases for which related activities are not present
The activity log
Activity name of the activity that acts as a an antecedent (if antecedent occurs, then consequent should also occur)
Activity name of the activity that acts as a an consequent (if antecedent occurs, then consequent should also occur)
Boolean indicating wheter details of the results need to be shown
Condition that is used to extract a subset of the activity log prior to the application of the function
# \donttest{ data("hospital_actlog") detect_related_activities(activitylog = hospital_actlog, antecedent = "Treatment evaluation", consequent = "Treatment") # }
Run the code above in your browser using DataLab