precedence_matrix: Precedence Matrix

View source: R/precedence_matrix_absolute.R

precedence_matrixR Documentation

Precedence Matrix

Description

Construct a precedence matrix, showing how activities are followed by each other. This is a performance improved variant of precedence_matrix in the processmapR package.

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

m <- precedence_matrix(hospital_multi_perspective, type = "absolute")
print(m)
as.matrix(m)


heuristicsmineR documentation built on April 4, 2023, 5:11 p.m.