Skip to content

Commit

Permalink
Uninformative priors option added
Browse files Browse the repository at this point in the history
*In case of uninformative-priors the SPS of each scientist will be 0.5 in the beginning resulting from `max-prior` pulls, where 1/2 was fails and 1/2 was successes. The starting confidence depends on the choice of the `max-prior` variable.
  • Loading branch information
daimpi committed Nov 5, 2017
1 parent a2f4e23 commit 3df90c8
Showing 1 changed file with 45 additions and 28 deletions.
73 changes: 45 additions & 28 deletions SocNetABM.nlogo
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ end

; generates the alphas & betas for the researchers priors
to-report init-ab
if uninformative-priors [
report max-prior / 2
]
; this formulation prevents drawing values of zero. It reports
; a random-float from the interval (0 , max-prior]
report (max-prior - random-float max-prior)
Expand Down Expand Up @@ -483,10 +486,10 @@ NIL
HORIZONTAL

SLIDER
13
308
185
341
15
307
187
340
max-prior
max-prior
1
Expand All @@ -498,10 +501,10 @@ NIL
HORIZONTAL

SLIDER
14
355
186
388
238
552
410
585
jump-threshold
jump-threshold
0
Expand All @@ -528,10 +531,10 @@ NIL
HORIZONTAL

SLIDER
13
399
185
432
428
554
600
587
strategy-threshold
strategy-threshold
0
Expand Down Expand Up @@ -577,10 +580,10 @@ NIL
0

CHOOSER
13
444
151
489
16
400
154
445
network-structure
network-structure
"cycle" "wheel" "complete"
Expand All @@ -606,21 +609,21 @@ PENS
"not-best-theory" 1.0 0 -14835848 true "" "plot count turtles with [mytheory = 1]"

SWITCH
13
500
167
533
16
456
170
489
critical-interaction
critical-interaction
1
1
-1000

SLIDER
13
548
185
581
16
504
188
537
crit-strength
crit-strength
1 / 10000
Expand All @@ -632,10 +635,10 @@ NIL
HORIZONTAL

SLIDER
14
592
198
625
17
548
201
581
crit-jump-threshold
crit-jump-threshold
0
Expand Down Expand Up @@ -723,6 +726,17 @@ th2-aps
NIL
HORIZONTAL

SWITCH
16
357
183
390
uninformative-priors
uninformative-priors
1
1
-1000

@#$#@#$#@
# UNDER CONSTRUCTION

Expand Down Expand Up @@ -1331,6 +1345,9 @@ NetLogo 6.0.2
<enumeratedValueSet variable="th2-aps">
<value value="0.499"/>
</enumeratedValueSet>
<enumeratedValueSet variable="uninformative-priors">
<value value="false"/>
</enumeratedValueSet>
</experiment>
</experiments>
@#$#@#$#@
Expand Down

0 comments on commit 3df90c8

Please sign in to comment.