/
antivaxemo_v3.nlogo
1622 lines (1486 loc) · 41.9 KB
/
antivaxemo_v3.nlogo
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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
globals [
initial-antivaxxers
antivaxxers
initial-activists
activists
activistsset
proactivists
proactivistset
nummessages
probability-doctor-doubt
o1 o2 od1 fij
doctor-interaction
patient-interaction
message-interaction
dicounter picounter micounter
histogram-list
t h1 h2 h3 h4 h5 h6 h7 h8 h9 h10
h11 h12 h13 h14 h15 h16 h17 h18 h19 h20 h21
tekscik
conversiontime
isintervention
isafterintervention
interventionstart
interventionend
afterinterventionend
startingperiod
newmessages
newmessages1
test
]
breed [patients patient]
breed [doctors doctor]
breed [messages message]
breed [initiators initiator]
breed [propagandists propagandist]
turtles-own [opinion location age]
to setup
clear-all
reset-ticks
set t 0
;file-close-all
;if file-exists? "evolutiona.txt" [file-delete "evolutiona.txt"]
;if file-exists? "histogram.z" [file-delete "histogram.z"]
;file-open "histogram.z"
;set tekscik "! nx 21 ny"
;file-type tekscik
;file-write maxsteps
;set tekscik " xmin -1.9 xmax 2 ymin 0 ymax "
;file-type tekscik
;file-write maxsteps
;file-print " "
;file-close
set isintervention 0
set startingperiod 92
create-patients 2000
ask patients
[set opinion random-normal centeropinion initialSD
set shape "person"
set size 2
set location (random-float 2)
if opinion > 2 [set opinion 2]
if opinion < -2 [set opinion -2]
set ycor opinion * 40
if opinion >= 0 [set color scale-color green opinion 2.5 -0.5]
if opinion < 0 [set color scale-color red opinion -2.5 0.5]
if opinion > ActivismThreshold [set size 3]
if opinion < -1 * ActivismThreshold [set size 3]
set age random 90
set xcor age
]
set activistsset patients with [opinion < -1 * ActivismThreshold ]
create-initiators numberinitiators
ask initiators
[set opinion -1 * ((random-float (2 - ActivismThreshold)) + ActivismThreshold)
set shape "face sad"
set size 3
set location ((random-float 0.2) - 2)
if opinion > 2 [set opinion 2]
if opinion < -2 [set opinion -2]
set xcor location * 50
set ycor opinion * 40
set color red
]
create-propagandists numpropagandists
ask propagandists
[set opinion ((random-float (2 - ActivismThreshold)) + ActivismThreshold)
set shape "face happy"
set size 3
set color 95
set location ((random-float 0.2) - 2)
if opinion > 2 [set opinion 2]
if opinion < -2 [set opinion -2]
set xcor location * 50
set ycor opinion * 40
]
set initial-antivaxxers count patients with [opinion < -1.0]
set probability-doctor-doubt initial-antivaxxers / 2000.0
set conversiontime 0
create-doctors 100
ask doctors
[set size 3
let choice random-float 1
ifelse choice < doctorconformism * probability-doctor-doubt
[set opinion random-float -0.25
set shape "face neutral"]
[set opinion 1. + (random-float 1)
set shape "face happy"]
set location (2 - (random-float 0.2))
if opinion > 2 [set opinion 2]
if opinion < -2 [set opinion -2]
set xcor location * 50
set ycor opinion * 40
if opinion >= 0 [set color scale-color green opinion 2.5 0]
if opinion < 0 [set color scale-color red opinion -2.5 0]
]
ask patches [
set pcolor white
if pycor < 40 * vaccinationthreshold [set pcolor 49]
if pycor < -40 * ActivismThreshold [set pcolor 19]
]
reset-ticks
end
to write-message
set newmessages 0
set newmessages1 0
if activists > 0 [
ask activistsset [
; up to 5 messages may be written during a time tick
set test random-float 1
if test < writingprobability [
hatch-messages 1
set newmessages (newmessages + 1)]
set test random-float 1
if test < writingprobability [
hatch-messages 1
set newmessages (newmessages + 1)]
set test random-float 1
if test < writingprobability [
hatch-messages 1
set newmessages (newmessages + 1)]
set test random-float 1
if test < writingprobability [
hatch-messages 1
set newmessages (newmessages + 1)]
set test random-float 1
if test < writingprobability [
hatch-messages 1
set newmessages (newmessages + 1)]
]
set newmessages1 newmessages
]
if (proactivists > 0) and (isafterintervention = 1) [
ask proactivistset [
; up to 10 messages may be written during a time tick - trolls are more active
set test random-float 1
if test < writingprobability [
hatch-messages 1
set newmessages (newmessages + 1)]
set test random-float 1
if test < writingprobability [
hatch-messages 1
set newmessages (newmessages + 1)]
set test random-float 1
if test < writingprobability [
hatch-messages 1
set newmessages (newmessages + 1)]
set test random-float 1
if test < writingprobability [
hatch-messages 1
set newmessages (newmessages + 1)]
set test random-float 1
if test < writingprobability [
hatch-messages 1
set newmessages (newmessages + 1)]
set test random-float 1
if test < writingprobability [
hatch-messages 1
set newmessages (newmessages + 1)]
set test random-float 1
if test < writingprobability [
hatch-messages 1
set newmessages (newmessages + 1)]
set test random-float 1
if test < writingprobability [
hatch-messages 1
set newmessages (newmessages + 1)]
set test random-float 1
if test < writingprobability [
hatch-messages 1
set newmessages (newmessages + 1)]
set test random-float 1
if test < writingprobability [
hatch-messages 1
set newmessages (newmessages + 1)]
]
]
ask initiators [
if opinion < -1 * ActivismThreshold [
; up to 5 messages may be written during a time tick
set test random-float 1
if test < writingprobability [
hatch-messages 1
set newmessages (newmessages + 1)]
set test random-float 1
if test < writingprobability [
hatch-messages 1
set newmessages (newmessages + 1)]
set test random-float 1
if test < writingprobability [
hatch-messages 1
set newmessages (newmessages + 1)]
set test random-float 1
if test < writingprobability [
hatch-messages 1
set newmessages (newmessages + 1)]
set test random-float 1
if test < writingprobability [
hatch-messages 1
set newmessages (newmessages + 1)]
]
]
ask messages [
if age >= 0 [set age -1]
set shape "square"
set size 1
set xcor age
set ycor opinion * 40
if opinion >= 0 [set color scale-color green opinion 2.5 -0.5]
if opinion < 0 [set color scale-color red opinion -2.5 0.5]
]
end
to ageall
ask patients [
ifelse (abs opinion) > ActivismThreshold
[set age age + activistaging]
[set age age + 1]
ifelse age > 90 ; create new agent with age 0 and new opinion
[set age 1
set opinion random-normal centeropinion initialSD
if opinion > 2 [set opinion 2]
if opinion < -2 [set opinion -2]]
[set xcor age] ; otherwise just shift right
]
ask messages [
set age age - messageaging
ifelse age < -90
[die]
[set xcor age]
]
end
to ask-a-doctor
ask patients [
set o1 opinion ; o1 holds initial opinion of the patient
let prob random-float 1
if prob < doctor-visit-ratio [ ; visit to a doctor takes place
ask one-of doctors [
set od1 opinion ; opinion of the doctor
ifelse od1 < 0 and count messages > 0 [ ; uncommitted, doubting doctor
ask one-of messages [ ; patient turns to messages instead
set od1 opinion
set micounter micounter + 1
if (o1 < -1 * ActivismThreshold) and (o1 < od1) [
set fij (2 - abs o1) / (2 - FilteringThreshold)] ; anti vaxx activists filter views of lower committment
if ( o1 < -1 * ActivismThreshold) and (od1 > 0) [set fij 0] ; antivaxx activists have absolute rejection of mesages pro vaccinating
if (o1 > ActivismThreshold) and (o1 > od1) [
set fij (2 - abs o1) / (2 - FilteringThreshold)] ; pro vaxx activists filter views of lower committment
if ( o1 > ActivismThreshold) and (od1 < 0) [set fij 0] ; pro vaxx activists have absolute rejection of mesages anti vaccinating
]
]
[
set dicounter dicounter + 1
set od1 opinion ; as before od1 is the interacting party opinion
if ((abs o1) > FilteringThreshold) and (o1 * od1 < 0 ) [ ; agents above Filtering Threashold take less count of opposing views
set fij (2 - abs o1) / (2 - FilteringThreshold) ]
if (o1 < -1 * ActivismThreshold) and (o1 < od1) [
set fij (2 - abs o1) / (2 - FilteringThreshold)] ; anti vaxx activists filter views of lower committment
if ( o1 < -1 * ActivismThreshold) and (od1 > 0) [set fij 0] ; antivaxx activists have absolute rejection of views of people pro vaccinating
]
] ; end of getting the opinion
; patient processes the opinion (from the committed doctor or from messages)
set o2 ((1 - alpha * fij) * o1 + alpha * fij * od1)
set opinion o2 ; adjust agents opinion after interacting with a doctor
set ycor opinion * 40
ifelse opinion < -1 * ActivismThreshold [set size 3] [set size 2]
if opinion >= 0 [set color scale-color green opinion 2.5 -0.5]
if opinion < 0 [set color scale-color red opinion -2.5 0.5]
]
]
end
to sample-opinion
ask patients [
set o1 opinion
set fij 1
ask one-of other turtles [ ; includes random visits to doctors, initiators, activists, messages and other patients
if breed = patients [ ; meetings with other patients are filtered according to difference of opinions and patient status
set picounter picounter + 1
set od1 opinion ; as before od1 is the interacting party opinion
if ((abs o1) > FilteringThreshold) and (o1 * od1 < 0 ) [ ; agents above Filtering Threashold take less count of opposing views
set fij (2 - abs o1) / (2 - FilteringThreshold) ]
if (o1 < -1 * ActivismThreshold) and (o1 < od1) [
set fij (2 - abs o1) / (2 - FilteringThreshold)] ; anti vaxx activists filter views of lower committment
if ( o1 < -1 * ActivismThreshold) and (od1 > 0) [set fij 0] ; antivaxx activists have absolute rejection of views of people pro vaccinating
]
if breed = doctors [ ; meetings with doctors are filtered according to difference of opinions and patient status
set dicounter dicounter + 1
set od1 opinion ; as before od1 is the interacting party opinion
if ((abs o1) > FilteringThreshold) and (o1 * od1 < 0 ) [ ; agents above Filtering Threashold take less count of opposing views
set fij (2 - abs o1) / (2 - FilteringThreshold) ]
if (o1 < -1 * ActivismThreshold) and (o1 < od1) [
set fij (2 - abs o1) / (2 - FilteringThreshold)] ; anti vaxx activists filter views of lower committment
if ( o1 < -1 * ActivismThreshold) and (od1 > 0) [set fij 0] ; antivaxx activists have absolute rejection of views of people pro vaccinating
]
if breed = messages [ ; messages are only filtered for activists
set micounter micounter + 1
set od1 opinion ; as before od1 is the interacting party opinion
if (o1 < -1 * ActivismThreshold) and (o1 < od1) [
set fij (2 - abs o1) / (2 - FilteringThreshold)] ; anti vaxx activists filter views of lower committment
if ( o1 < -1 * ActivismThreshold) and (od1 > 0) [set fij 0] ; antivaxx activists have absolute rejection of mesages pro vaccinating
if (o1 > ActivismThreshold) and (o1 > od1) [
set fij (2 - abs o1) / (2 - FilteringThreshold)] ; pro vaxx activists filter views of lower committment
if ( o1 > ActivismThreshold) and (od1 < 0) [set fij 0] ; pro vaxx activists have absolute rejection of mesages anti vaccinating
]
]
set o2 ((1 - alpha * fij) * o1 + alpha * fij * od1)
set opinion o2 ; adjust agents opinion after interaction
set ycor opinion * 40
ifelse abs opinion > ActivismThreshold [set size 3] [set size 2]
if opinion >= 0 [set color scale-color green opinion 2.5 -0.5]
if opinion < 0 [set color scale-color red opinion -2.5 0.5]
]
end
to update-doctors
set antivaxxers count patients with [opinion < vaccinationthreshold]
ask doctors [
set size 3
let choice random-float 1
ifelse choice < doctorconformism * antivaxxers / 2000
[set opinion random-float -0.25
set shape "face neutral"]
[set opinion 1. + (random-float 1)
set shape "face happy"]
set location (2 - (random-float 0.2))
if opinion > 2 [set opinion 2]
if opinion < -2 [set opinion -2]
set xcor location * 50
set ycor opinion * 40
if opinion >= 0 [set color scale-color green opinion 2.5 0]
if opinion < 0 [set color scale-color red opinion -2.5 0]
]
end
to printout-evolution-line
file-open "evolutiona.txt"
set nummessages count messages
;set histogram-list (list t antivaxxers activists nummessages doctor-interaction patient-interaction message-interaction h1 h2 h3 h4 h5 h6 h7 h8 h9 h10 h11 h12 h13 h14 h15 h16 h17 h18 h19 h20 h21)
file-write t
file-write antivaxxers ;
file-write activists
file-write nummessages
file-write doctor-interaction
file-write patient-interaction
file-write message-interaction
file-print " ";h1 h2 h3 h4 h5 h6 h7 h8 h9 h10 h11 h12 h13 h14 h15 h16 h17 h18 h19 h20 h21] ;histogram-list
file-close
end
to printout-histogram-line
file-open "histogram.z"
set nummessages count messages
set h1 count patients with [opinion < -0.95 * 2 ]
set h2 count patients with [(opinion < -0.85 * 2) and (opinion >= -0.95 * 2)]
set h3 count patients with [(opinion < -0.75 * 2) and (opinion >= -0.85 * 2)]
set h4 count patients with [(opinion < -0.65 * 2) and (opinion >= -0.75 * 2)]
set h5 count patients with [(opinion < -0.55 * 2) and (opinion >= -0.65 * 2)]
set h6 count patients with [(opinion < -0.45 * 2) and (opinion >= -0.55 * 2)]
set h7 count patients with [(opinion < -0.35 * 2) and (opinion >= -0.45 * 2)]
set h8 count patients with [(opinion < -0.25 * 2) and (opinion >= -0.35 * 2)]
set h9 count patients with [(opinion < -0.15 * 2) and (opinion >= -0.25 * 2)]
set h10 count patients with [(opinion < -0.05 * 2) and (opinion >= -0.15 * 2)]
set h11 count patients with [(opinion < 0.05 * 2) and (opinion >= -0.05 * 2)]
set h12 count patients with [(opinion < 0.15 * 2) and (opinion >= 0.05 * 2)]
set h13 count patients with [(opinion < 0.25 * 2) and (opinion >= 0.15 * 2)]
set h14 count patients with [(opinion < 0.35 * 2) and (opinion >= 0.25 * 2)]
set h15 count patients with [(opinion < 0.45 * 2) and (opinion >= 0.35 * 2)]
set h16 count patients with [(opinion < 0.55 * 2) and (opinion >= 0.45 * 2)]
set h17 count patients with [(opinion < 0.65 * 2) and (opinion >= 0.55 * 2)]
set h18 count patients with [(opinion < 0.75 * 2) and (opinion >= 0.65 * 2)]
set h19 count patients with [(opinion < 0.85 * 2) and (opinion >= 0.75 * 2)]
set h20 count patients with [(opinion < 0.95 * 2) and (opinion >= 0.85 * 2)]
set h21 count patients with [(opinion <= 2.0) and (opinion >= 0.95 * 2)]
;set histogram-list (list t antivaxxers activists nummessages doctor-interaction patient-interaction message-interaction h1 h2 h3 h4 h5 h6 h7 h8 h9 h10 h11 h12 h13 h14 h15 h16 h17 h18 h19 h20 h21)
file-write h1
file-write h2
file-write h3
file-write h4
file-write h5
file-write h6
file-write h7
file-write h8
file-write h9
file-write h10
file-write h11
file-write h12
file-write h13
file-write h14
file-write h15
file-write h16
file-write h17
file-write h18
file-write h19
file-write h20
file-write h21;histogram-
file-print " "
file-close
end
to intervene
if isintervention = 1 [ ; intervention
ask propagandists [ ; during time of intervention propagandists write messages
hatch-messages 1
]
]
end
to checkintervention
if numpropagandists > 0 [ ; all this happens only when there are propagandists
if isintervention = 0 [ ; creating intervention condition
if count patients with [opinion < vaccinationthreshold] > interventiontrigger [
set isintervention 1
set isafterintervention 1
set interventionstart t
set interventionend (t + interventionlength)
set afterinterventionend (interventionend + afterinterventiontime)
]
]
if isintervention = 1 [ ; destroying intervention condition
if t > interventionend [ ; duration of intervention exceeded
set isintervention 0 ]
]
if isafterintervention = 1 [ ; destroying after intervention condition
if t > afterinterventionend [ ; duration of intervention exceeded
set isafterintervention 0 ]
]
]
end
to cullmessages
ask messages [
set test random-float 1
if test > (maxmessages / (count messages + 1)) [ die ]
]
end
to go
write-message
ageall
if t >= startingperiod [
set dicounter 0
set picounter 0
set micounter 0
ask-a-doctor
checkintervention
intervene
cullmessages
sample-opinion
intervene
set doctor-interaction dicounter
set patient-interaction picounter
set message-interaction micounter
set activists count patients with [opinion < -1 * ActivismThreshold ]
set proactivists count patients with [opinion > ActivismThreshold]
ifelse conversiontime > 0 [
stop
]
[
if activists > 1600 [set conversiontime t]
]
set activistsset patients with [opinion < -1 * ActivismThreshold ]
set proactivistset patients with [opinion > ActivismThreshold ]
update-doctors
;printout-evolution-line
;printout-histogram-line
]
set t t + 1
tick
if ticks > maxsteps + 2 + startingperiod [
;file-open "histogram.z"
;file-print " "
;file-close-all
stop]
end
@#$#@#$#@
GRAPHICS-WINDOW
860
22
1873
836
-1
-1
5.0
1
10
1
1
1
0
0
0
1
-100
100
-80
80
1
1
1
ticks
30.0
SLIDER
39
127
211
160
ActivismThreshold
ActivismThreshold
1
2
1.8
0.01
1
NIL
HORIZONTAL
SLIDER
39
170
211
203
FilteringThreshold
FilteringThreshold
0
2
1.0
0.1
1
NIL
HORIZONTAL
BUTTON
146
38
209
71
NIL
go
T
1
T
OBSERVER
NIL
NIL
NIL
NIL
1
BUTTON
40
38
103
71
NIL
setup
NIL
1
T
OBSERVER
NIL
NIL
NIL
NIL
1
SLIDER
39
272
211
305
centeropinion
centeropinion
-2
2
0.0
0.1
1
NIL
HORIZONTAL
SLIDER
40
327
212
360
initialSD
initialSD
0
1
0.5
0.05
1
NIL
HORIZONTAL
SLIDER
39
84
211
117
numberinitiators
numberinitiators
0
10
1.0
1
1
NIL
HORIZONTAL
SLIDER
42
380
214
413
writingprobability
writingprobability
0
1
0.45
0.01
1
NIL
HORIZONTAL
SLIDER
44
430
216
463
doctor-visit-ratio
doctor-visit-ratio
0
1
0.15
0.01
1
NIL
HORIZONTAL
SLIDER
44
520
216
553
alpha
alpha
0
1
0.66
0.01
1
NIL
HORIZONTAL
SLIDER
40
220
212
253
vaccinationthreshold
vaccinationthreshold
-2
0
-1.0
0.05
1
NIL
HORIZONTAL
PLOT
463
23
807
173
Antivaxxers
time
NIL
0.0
10.0
0.0
10.0
true
false
"" ""
PENS
"default" 1.0 0 -2674135 true "" "plot count patients with [opinion < vaccinationthreshold]"
PLOT
464
193
808
343
Doubting doctors
NIL
NIL
0.0
10.0
0.0
10.0
true
false
"" ""
PENS
"pen-1" 1.0 0 -13791810 true "" "plot count doctors with [opinion < 0]"
PLOT
464
365
808
515
Messages in the system
time
NIL
0.0
10.0
0.0
10.0
true
false
"" ""
PENS
"default" 1.0 0 -16777216 true "" "plot count messages"
"pen-1" 1.0 0 -11085214 true "" "plot count messages with [opinion > 0]"
"pen-2" 1.0 0 -2674135 true "" "plot count messages with [opinion < 0]"
PLOT
38
690
378
840
Opinion distribution
opinion
NIL
-2.0
2.0
0.0
500.0
false
false
"" ""
PENS
"default" 0.1 1 -16777216 true "" "histogram [opinion] of patients"
PLOT
465
527
808
677
New Activists
NIL
NIL
0.0
10.0
0.0
10.0
true
false
"" ""
PENS
"default" 1.0 0 -2674135 true "" "plot count patients with [opinion < -1 * ActivismThreshold]"
"pen-1" 1.0 0 -14439633 true "plot count patients with [opinion > ActivismThreshold]" ""
SLIDER
45
477
218
510
doctorconformism
doctorconformism
0
1
0.5
0.02
1
NIL
HORIZONTAL
INPUTBOX
44
613
221
673
maxsteps
20100.0
1
0
Number
MONITOR
246
618
343
663
NIL
conversiontime
0
1
11
SLIDER
44
568
217
601
maxmessages
maxmessages
0
3000
2000.0
100
1
NIL
HORIZONTAL
SLIDER
249
269
422
302
interventiontrigger
interventiontrigger
0
500
220.0
20
1
NIL
HORIZONTAL
SLIDER
250
324
423
357
numpropagandists
numpropagandists
0
20
0.0
1
1
NIL
HORIZONTAL
SLIDER
249
378
422
411
interventionlength
interventionlength
0
50
20.0
1
1
NIL
HORIZONTAL
MONITOR
246
567
342
612
NIL
isintervention
0
1
11
SLIDER
248
433
428
466
afterinterventiontime
afterinterventiontime
0
50
40.0
5
1
NIL
HORIZONTAL
MONITOR
246
519
342
564
NIL
isafterintervention
0
1
11
SLIDER
253
88
426
121
messageaging
messageaging
1
6
5.0
1
1
NIL
HORIZONTAL
SLIDER
255
138
428
171
activistaging
activistaging
1
6
3.0
1
1
NIL
HORIZONTAL
PLOT
467
696
810
846
New Messages
NIL
NIL
0.0
10.0
0.0
10.0
true