Skip to content

Commit 3df90c8

Browse files
committed
Uninformative priors option added
*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.
1 parent a2f4e23 commit 3df90c8

File tree

1 file changed

+45
-28
lines changed

1 file changed

+45
-28
lines changed

SocNetABM.nlogo

+45-28
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@ end
151151

152152
; generates the alphas & betas for the researchers priors
153153
to-report init-ab
154+
if uninformative-priors [
155+
report max-prior / 2
156+
]
154157
; this formulation prevents drawing values of zero. It reports
155158
; a random-float from the interval (0 , max-prior]
156159
report (max-prior - random-float max-prior)
@@ -483,10 +486,10 @@ NIL
483486
HORIZONTAL
484487

485488
SLIDER
486-
13
487-
308
488-
185
489-
341
489+
15
490+
307
491+
187
492+
340
490493
max-prior
491494
max-prior
492495
1
@@ -498,10 +501,10 @@ NIL
498501
HORIZONTAL
499502

500503
SLIDER
501-
14
502-
355
503-
186
504-
388
504+
238
505+
552
506+
410
507+
585
505508
jump-threshold
506509
jump-threshold
507510
0
@@ -528,10 +531,10 @@ NIL
528531
HORIZONTAL
529532

530533
SLIDER
531-
13
532-
399
533-
185
534-
432
534+
428
535+
554
536+
600
537+
587
535538
strategy-threshold
536539
strategy-threshold
537540
0
@@ -577,10 +580,10 @@ NIL
577580
0
578581

579582
CHOOSER
580-
13
581-
444
582-
151
583-
489
583+
16
584+
400
585+
154
586+
445
584587
network-structure
585588
network-structure
586589
"cycle" "wheel" "complete"
@@ -606,21 +609,21 @@ PENS
606609
"not-best-theory" 1.0 0 -14835848 true "" "plot count turtles with [mytheory = 1]"
607610

608611
SWITCH
609-
13
610-
500
611-
167
612-
533
612+
16
613+
456
614+
170
615+
489
613616
critical-interaction
614617
critical-interaction
615618
1
616619
1
617620
-1000
618621

619622
SLIDER
620-
13
621-
548
622-
185
623-
581
623+
16
624+
504
625+
188
626+
537
624627
crit-strength
625628
crit-strength
626629
1 / 10000
@@ -632,10 +635,10 @@ NIL
632635
HORIZONTAL
633636

634637
SLIDER
635-
14
636-
592
637-
198
638-
625
638+
17
639+
548
640+
201
641+
581
639642
crit-jump-threshold
640643
crit-jump-threshold
641644
0
@@ -723,6 +726,17 @@ th2-aps
723726
NIL
724727
HORIZONTAL
725728

729+
SWITCH
730+
16
731+
357
732+
183
733+
390
734+
uninformative-priors
735+
uninformative-priors
736+
1
737+
1
738+
-1000
739+
726740
@#$#@#$#@
727741
# UNDER CONSTRUCTION
728742

@@ -1331,6 +1345,9 @@ NetLogo 6.0.2
13311345
<enumeratedValueSet variable="th2-aps">
13321346
<value value="0.499"/>
13331347
</enumeratedValueSet>
1348+
<enumeratedValueSet variable="uninformative-priors">
1349+
<value value="false"/>
1350+
</enumeratedValueSet>
13341351
</experiment>
13351352
</experiments>
13361353
@#$#@#$#@

0 commit comments

Comments
 (0)