Learn R Programming

processmapR (version 0.5.6)

precedence_matrix: Precendence Matrix

Description

Construct a precendence matrix, showing how activities are followed by each other.

[Deprecated] This function is deprecated and replaced by the process_matrix function, which shared the same usage with process_map

Usage

precedence_matrix(
  eventlog,
  type = c("absolute", "relative", "relative-antecedent", "relative-consequent",
    "relative-case")
)

Arguments

eventlog

The event log object to be used

type

The type of precedence matrix, which can be absolulte, relative, relative-antecedent or relative-consequent. Absolute will return a matrix with absolute frequencies, relative will return global relative frequencies for all antecedent-consequent pairs. Relative-antecedent will return relative frequencies within each antecendent, i.e. showing the relative proportion of consequents within each antecedent. Relative-consequent will do the reverse.

Examples

Run this code
if (FALSE) {
library(eventdataR)
data(patients)
precedence_matrix(patients)
}

Run the code above in your browser using DataLab