forked from flyaflya/causact
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcafeTemp.dot
More file actions
82 lines (76 loc) · 3.09 KB
/
cafeTemp.dot
File metadata and controls
82 lines (76 loc) · 3.09 KB
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
75
76
77
78
79
80
81
82
digraph {
graph [layout = 'dot',
outputorder = 'edgesfirst',
bgcolor = 'white',
labelloc = 'b',
labeljust = 'r']
node [fontname = 'Helvetica',
fontsize = '10',
shape = 'ellipse',
fixedsize = 'false',
width = '0.9',
style = 'filled',
fillcolor = 'AliceBlue',
color = 'gray20',
fontcolor = 'black',
height = '0.5',
margin = '0.05,0.05']
edge [fontname = 'Helvetica',
fontsize = '8',
len = '1.5',
color = 'gray20',
arrowsize = '0.5',
fontcolor = 'black']
'7' [label = 'Exp Wait and Wait Diff
Y ~ multivariate_normal(Mean,Sigma)', peripheries = '1', fillcolor = 'aliceblue', fontcolor = 'black']
'8' [label = 'Uncorr. Exp. Effects
Mean = cbind(alpha, beta)', peripheries = '2', fillcolor = 'aliceblue', fontcolor = 'black']
'9' [label = 'Covar Matrix
Sigma = diag(Sigmas) %*% Rho %*% diag(Sigmas)', peripheries = '2', fillcolor = 'aliceblue', fontcolor = 'black']
'12' [label = 'Uncorr Std Devs
Sigmas = c(sig_a, sig_b)', peripheries = '2', fillcolor = 'aliceblue', fontcolor = 'black']
'13' [label = 'Obs Wait Std Dev
sig ~ cauchy(0,1,trunc=c(0, Inf))', peripheries = '1', fillcolor = 'aliceblue', fontcolor = 'black']
'14' [label = 'Morning Wait Std Dev
sig_a ~ cauchy(0,1,trunc=c(0, Inf))', peripheries = '1', fillcolor = 'aliceblue', fontcolor = 'black']
'15' [label = 'Wait Diff Std Dev
sig_b ~ cauchy(0,1,trunc=c(0, Inf))', peripheries = '1', fillcolor = 'aliceblue', fontcolor = 'black']
'16' [label = 'Wait Corr. Matrix
rho ~ lkj_correlation(2)', peripheries = '1', fillcolor = 'aliceblue', fontcolor = 'black']
subgraph cluster2{
label='Cafes cafe [20]'
'3' [label = 'Exp Morning Wait Time
alpha_cafe = Y[, 1]', peripheries = '2', fillcolor = 'aliceblue', fontcolor = 'black']
'4' [label = 'Exp Wait Time Diff.
beta_cafe = Y[, 2]', peripheries = '2', fillcolor = 'aliceblue', fontcolor = 'black']
'10' [label = 'Uncorr. Morning Wait
alpha ~ normal(0,10)', peripheries = '1', fillcolor = 'aliceblue', fontcolor = 'black']
'11' [label = 'Uncorr. Wait Diff
beta ~ normal(0,10)', peripheries = '1', fillcolor = 'aliceblue', fontcolor = 'black'] }
subgraph cluster3{
label='Observation j'
'1' [label = 'Obs Wait Time [200]
x ~ normal(mu,sig)', peripheries = '1', fillcolor = 'cadetblue', fontcolor = 'black']
'2' [label = 'Exp Obs Wait Time
mu = alpha_cafe[cafe] + beta_cafe[cafe] * afternoon', peripheries = '2', fillcolor = 'aliceblue', fontcolor = 'black']
'5' [label = 'Cafe [200]
cafe', peripheries = '1', fillcolor = 'cadetblue', fontcolor = 'black']
'6' [label = 'Afternoon [200]
afternoon', peripheries = '1', fillcolor = 'cadetblue', fontcolor = 'black'] }
'3'->'2' [style = 'dashed']
'4'->'2' [style = 'dashed']
'10'->'8' [style = 'solid']
'11'->'8' [style = 'solid']
'8'->'7' [style = 'solid']
'14'->'12' [style = 'solid']
'5'->'2' [style = 'solid']
'7'->'4' [style = 'solid']
'7'->'3' [style = 'solid']
'6'->'2' [style = 'solid']
'2'->'1' [style = 'solid']
'16'->'9' [style = 'solid']
'13'->'1' [style = 'solid']
'9'->'7' [style = 'solid']
'15'->'12' [style = 'solid']
'12'->'9' [style = 'solid']
}