-
Notifications
You must be signed in to change notification settings - Fork 0
/
brf.json
195 lines (195 loc) · 4.5 KB
/
brf.json
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
[
{
"modelParams": {
"name": "Base rate fallacy",
"description": "Imagine running a disease test on a population in which 0.1% are infected. The test has a sensitivity of 100% (probability of a positive test given that the person has the disease) and specificity of 95% (probability of negative test when the person is well). If the test is positive, what is the probability a person is sick?",
"steps": 1,
"method": "rejection",
"include": [],
"table": false,
"customCode": ""
},
"blocks": [
{
"id": "b1682787",
"name": "Probability of event",
"show": false,
"type": "Data",
"typeCode": 2,
"useAsParameter": true,
"dims": "",
"value": "0.1",
"units": "%",
"dataType": "",
"dataCategories": "",
"minimized": false,
"pos": {
"x": 35,
"y": 253
}
},
{
"id": "b59383790",
"name": "Test sensitivity",
"show": false,
"type": "Data",
"typeCode": 2,
"useAsParameter": true,
"dims": "",
"value": "100",
"units": "%",
"dataType": "",
"dataCategories": "",
"minimized": false,
"pos": {
"x": -261,
"y": 57
}
},
{
"id": "b73264460",
"name": "Test specificity",
"show": false,
"type": "Data",
"typeCode": 2,
"useAsParameter": true,
"dims": "",
"value": "95",
"units": "%",
"dataType": "",
"dataCategories": "",
"minimized": false,
"pos": {
"x": -55,
"y": -256
}
},
{
"id": "b94144129",
"name": "Observed test result",
"show": false,
"type": "Data",
"typeCode": 2,
"useAsParameter": true,
"dims": "",
"value": "true",
"units": "",
"dataType": "boolean",
"dataCategories": "",
"minimized": false,
"icon": "",
"color": "#61c900",
"size": 40,
"pos": {
"x": 252,
"y": -29
}
},
{
"id": "b16284577",
"distribution": "Bernoulli",
"name": "Event",
"once": false,
"params": {
"p": "Probability of event / 100"
},
"show": true,
"type": "Random Variable",
"typeCode": 0,
"dims": "1",
"units": "",
"minimized": false,
"icon": "",
"color": "#eaac0c",
"size": 40,
"pos": {
"x": 34,
"y": 126
}
},
{
"id": "b12980152",
"distribution": "Bernoulli",
"name": "True positive",
"once": false,
"params": {
"p": "Test sensitivity / 100"
},
"show": false,
"type": "Random Variable",
"typeCode": 0,
"dims": "1",
"units": "",
"minimized": false,
"icon": "",
"color": "#eaac0c",
"size": 40,
"pos": {
"x": -135,
"y": 35
}
},
{
"id": "b47678101",
"distribution": "Bernoulli",
"name": "True negative",
"once": false,
"params": {
"p": "Test specificity / 100"
},
"show": false,
"type": "Random Variable",
"typeCode": 0,
"dims": "1",
"units": "",
"minimized": false,
"icon": "",
"color": "#eaac0c",
"size": 40,
"pos": {
"x": -40,
"y": -130
}
},
{
"id": "b18936580",
"name": "Test result",
"history": false,
"show": false,
"type": "Expression",
"typeCode": 1,
"expressionType": "If..Else",
"params": {
"condition": "Event",
"true": "True positive",
"false": "!True negative"
},
"value": "Event || !Correct measure",
"units": "",
"minimized": false,
"icon": "",
"color": "#0097cc",
"size": 40,
"pos": {
"x": 0,
"y": 0
}
},
{
"id": "b24040960",
"type": "Condition",
"typeCode": 5,
"value": "Test result == Observed test result",
"minimized": false,
"pos": {
"x": 127,
"y": -46
}
}
],
"methodParams": {
"chains": 1,
"samples": "100000"
}
}
]