-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathorganisational_analysis.Rmd
76 lines (50 loc) · 1.81 KB
/
organisational_analysis.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
---
title: "Organisational Analysis"
---
```{r echo = F, out.width="25%", fig.align = "right"}
knitr::include_graphics("images/icons/org.PNG")
```
```{r include = F}
library(bupaR)
```
***
# Organisational analysis
## Resource Frequency
The resource frequency metric allows the computation of the number/frequency of resources at the levels of log, case, activity, resource, and resource-activity.
```{r}
patients %>%
resource_frequency("resource")
```
## Resource Involvement
Resource involvement refers to the notion of the number of cases in which a resource is involved. It can be computed at levels case, resource, and resource-activity.
```{r eval = F}
patients %>%
resource_involvement(level = "resource") %>% plot
```
It this example it shows that only r1 and r2 are involved in all cases, r6 and r7 are involved in most of the cases, while the others are only involved in half of the cases, more or less.
## Resource Specialization
The resource specalization metric shows whether resources are specialized in certain activities or not. It can be calculated at the levels log, case, resource and activity.
```{r}
patients %>%
resource_specialisation("resource")
```
In the simple patients event log, each resource is performing exactly one activity, and is therefore 100% specialized.
```{r include = F}
library(tidyverse)
library(bupaR)
library(pander)
library(lubridate)
```
## Handover-of-work network
A handover-of-work network can be created with the `resource_map` function. It has the same arguments as the `process_map` function.
```{r}
patients %>%
resource_map()
```
## Resource precedence matrix
A more compact representation of hand-over-of-work is given by the `resource_matrix` function, which works the same as the `process matrix` functions.
```{r}
patients %>%
resource_matrix() %>%
plot()
```