活動是流程的基石

R 商業流程分析

Gert Janssenswillen

Creator of bupaR

範例:線上學習

R 商業流程分析

事件紀錄初探

掌握事件紀錄的範圍

  • 有多少個 case
  • 有多少種不同的 activities
  • 總共有多少個 events
  • 資料記錄的 time period 是什麼?
R 商業流程分析
library(bupaR)

你可以列印事件紀錄的摘要來查看這些資訊:

summary(learning)

或使用計數函式。

n_cases(learning)
498
n_activities(learning)
10
R 商業流程分析

活動

活動描述流程如何進行

  • 執行了哪些動作?
  • 執行順序為何?
R 商業流程分析

探索活動

activity_labels(learning)
 [1]  "Consult Dictionary"   "Consult Theory Pages" "Exercise 1"           
 [4]  "Exercise 2"           "Exercise 3"           "Exercise 4"          
 [7]  "Exercise 5"           "Exercise 6"           "Exercise 7"        
 [10] "Assessment" 
R 商業流程分析

探索活動

activities(learning)
# A tibble: 10 x 3
  action               absolute_frequency relative_frequency
   <chr>                             <dbl>              <dbl>
 1 Exercise 1                         516              0.142 
 2 Assessment                         498              0.137 
 3 Exercise 2                         493              0.135 
 4 Exercise 4                         442              0.121 
 5 Exercise 3                         436              0.120 
 6 Exercise 5                         360              0.0988
 7 Exercise 6                         302              0.0829
 8 Exercise 7                         299              0.0820
 9 Consult Dictionary                 165              0.0453
R 商業流程分析

探索活動序列

每個 case 都由一連串活動描述,即其 trace

R 商業流程分析

探索活動序列

  • 可用 traces 函式取得 trace 的次數表
traces(learning)
  • 也可用 trace_explorer 視覺化
trace_explorer(learning)
R 商業流程分析

一起來練習吧!

R 商業流程分析

Preparing Video For Download...