-
Notifications
You must be signed in to change notification settings - Fork 4
/
CCPUKSARI_R_2020-12-15_1141.r
2139 lines (2133 loc) · 164 KB
/
CCPUKSARI_R_2020-12-15_1141.r
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
# RP edited file from REDCap based EMH prevision changes - overwrite factors with factors.
# Setting Factors (will NOT create new variable for factors)
# we've removed all namings
data$redcap_event_name = factor(data$redcap_event_name,levels=c("day_1_hospital_adm_arm_1","day_3_arm_1","day_6_arm_1","day_9_arm_1","additional_days_arm_1","dischargedeath_arm_1","day_1_hospitalicu_arm_2","day_3_arm_2","day_6_arm_2","day_9_arm_2","additional_days_arm_2","dischargedeath_arm_2","initial_follow_up_arm_2","day_1_arm_3","day_2_arm_3","day_3_arm_3","day_4_arm_3","day_5_arm_3","day_6_arm_3","day_7_arm_3","day_8_arm_3","day_9_arm_3","day_10_arm_3","day_11_arm_3","day_12_arm_3","day_13_arm_3","day_14_arm_3","additional_days_arm_3","dischargedeath_arm_3","initial_follow_up_arm_3"))
data$redcap_repeat_instrument = factor(data$redcap_repeat_instrument,levels=c("preadmission_medication","infectious_respiratory_disease_pathogen_testing","daily_form"))
data$participant_identification_number_pin_complete = factor(data$participant_identification_number_pin_complete,levels=c("0","1","2"))
data$tiers_faorres___1 = factor(data$tiers_faorres___1,levels=c("0","1"))
data$tiers_faorres___2 = factor(data$tiers_faorres___2,levels=c("0","1"))
data$tiers_faorres___3 = factor(data$tiers_faorres___3,levels=c("0","1"))
data$tiers_consent_complete = factor(data$tiers_consent_complete,levels=c("0","1","2"))
data$covid19_new = factor(data$covid19_new,levels=c("1"))
data$version_9_7 = factor(data$version_9_7,levels=c("1"))
data$ni_site = factor(data$ni_site,levels=c("1"))
data$corona_ieorres = factor(data$corona_ieorres,levels=c("1","0"))
data$coriona_ieorres2 = factor(data$coriona_ieorres2,levels=c("1","0"))
data$coriona_ieorres3 = factor(data$coriona_ieorres3,levels=c("1","0"))
data$fever = factor(data$fever,levels=c("1","0"))
data$cough = factor(data$cough,levels=c("1","0"))
data$dyspnoe = factor(data$dyspnoe,levels=c("1","0"))
data$ari = factor(data$ari,levels=c("1","0"))
data$inflammatory_mss = factor(data$inflammatory_mss,levels=c("1","0"))
data$symptoms_epi_travel = factor(data$symptoms_epi_travel,levels=c("1","2","3"))
data$symptoms_epi_physical = factor(data$symptoms_epi_physical,levels=c("1","2","3"))
data$symptoms_epi_healthfac = factor(data$symptoms_epi_healthfac,levels=c("1","2","3"))
data$symptoms_epi_lab = factor(data$symptoms_epi_lab,levels=c("1","2","3"))
data$symptoms_epi_pathogen = factor(data$symptoms_epi_pathogen,levels=c("1","2","3"))
data$symptoms_epi_animal = factor(data$symptoms_epi_animal,levels=c("1","2","3"))
data$inclusion_criteria_complete = factor(data$inclusion_criteria_complete,levels=c("0","1","2"))
data$sex = factor(data$sex,levels=c("1","2","3"))
data$agedatyn = factor(data$agedatyn,levels=c("1","0"))
data$age_estimateyearsu = factor(data$age_estimateyearsu,levels=c("1","2"))
data$ethnic___1 = factor(data$ethnic___1,levels=c("0","1"))
data$ethnic___2 = factor(data$ethnic___2,levels=c("0","1"))
data$ethnic___3 = factor(data$ethnic___3,levels=c("0","1"))
data$ethnic___4 = factor(data$ethnic___4,levels=c("0","1"))
data$ethnic___5 = factor(data$ethnic___5,levels=c("0","1"))
data$ethnic___6 = factor(data$ethnic___6,levels=c("0","1"))
data$ethnic___7 = factor(data$ethnic___7,levels=c("0","1"))
data$ethnic___8 = factor(data$ethnic___8,levels=c("0","1"))
data$ethnic___9 = factor(data$ethnic___9,levels=c("0","1"))
data$ethnic___10 = factor(data$ethnic___10,levels=c("0","1"))
data$healthwork_erterm = factor(data$healthwork_erterm,levels=c("1","2","3"))
data$labwork_erterm = factor(data$labwork_erterm,levels=c("1","2","3"))
data$pregyn_rptestcd = factor(data$pregyn_rptestcd,levels=c("1","0","998","999"))
data$postpart_rptestcd = factor(data$postpart_rptestcd,levels=c("1","0","3"))
data$pregout_rptestcd = factor(data$pregout_rptestcd,levels=c("1","2"))
data$aplb_lbperf = factor(data$aplb_lbperf,levels=c("1","2","3"))
data$aplb_lborres = factor(data$aplb_lborres,levels=c("1","2"))
data$aplb_lbmethod = factor(data$aplb_lbmethod,levels=c("1","2"))
data$apdm_age = factor(data$apdm_age,levels=c("1","0"))
data$apvs_weightu = factor(data$apvs_weightu,levels=c("1","2"))
data$apvs_weightnk = factor(data$apvs_weightnk,levels=c("1"))
data$apsc_gestout = factor(data$apsc_gestout,levels=c("1","2","3"))
data$apsc_brfedind = factor(data$apsc_brfedind,levels=c("1","2","3"))
data$apsc_brfedindy = factor(data$apsc_brfedindy,levels=c("1","2","3"))
data$apsc_dvageind = factor(data$apsc_dvageind,levels=c("1","2","3"))
data$apsc_vcageind = factor(data$apsc_vcageind,levels=c("1","2","3","4"))
data$covid19_vaccine = factor(data$covid19_vaccine,levels=c("1","0","3"))
data$vaccine_covid_trial = factor(data$vaccine_covid_trial,levels=c("1","0","3"))
data$influenza_2021_vaccine = factor(data$influenza_2021_vaccine,levels=c("1","0","3"))
data$demographics_complete = factor(data$demographics_complete,levels=c("0","1","2"))
data$asymptomatic = factor(data$asymptomatic,levels=c("1"))
data$readm_cov19 = factor(data$readm_cov19,levels=c("1","0","3"))
data$prev_subjid_nk = factor(data$prev_subjid_nk,levels=c("1"))
data$readminreasnk = factor(data$readminreasnk,levels=c("1"))
data$susp_reinf = factor(data$susp_reinf,levels=c("1","0","3"))
data$surgefacil = factor(data$surgefacil,levels=c("1","0","3"))
data$hooccur = factor(data$hooccur,levels=c("1","2","3","4"))
data$siteid_transfernk = factor(data$siteid_transfernk,levels=c("1"))
data$hostdat_transfernk = factor(data$hostdat_transfernk,levels=c("1"))
data$subjidcat_transfer = factor(data$subjidcat_transfer,levels=c("1","2","3"))
data$travel_erterm = factor(data$travel_erterm,levels=c("1","2","3"))
data$supper_trcntry = factor(data$supper_trcntry,levels=c("4","5","6","7","8","9","10","11","12","13","14","15","1","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","2","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59","60","61","62","63","64","3","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","202","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","201","193","194","195","196","197","198","199","200"))
data$travel_erterm_2 = factor(data$travel_erterm_2,levels=c("1","2","3"))
data$supper_trcntry_2 = factor(data$supper_trcntry_2,levels=c("4","5","6","7","8","9","10","11","12","13","14","15","1","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","2","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59","60","61","62","63","64","3","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","202","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","201","193","194","195","196","197","198","199","200"))
data$animal_eryn = factor(data$animal_eryn,levels=c("1","2","3","4"))
data$animal_eryn_2 = factor(data$animal_eryn_2,levels=c("1","2","3","4"))
data$onset_and_admission_complete = factor(data$onset_and_admission_complete,levels=c("0","1","2"))
data$temp_vsyn = factor(data$temp_vsyn,levels=c("1","0"))
data$temp_vsorresu = factor(data$temp_vsorresu,levels=c("1","2"))
data$hr_vsyn = factor(data$hr_vsyn,levels=c("1","0"))
data$rr_vsyn = factor(data$rr_vsyn,levels=c("1","0"))
data$sysbp_vsyn = factor(data$sysbp_vsyn,levels=c("1","0"))
data$diabp_vsyn = factor(data$diabp_vsyn,levels=c("1","0"))
data$dehydration_vsorres = factor(data$dehydration_vsorres,levels=c("1","2","3"))
data$stercap_vsyn = factor(data$stercap_vsyn,levels=c("1","0"))
data$stercap_vsorres = factor(data$stercap_vsorres,levels=c("1","2","3"))
data$oxy_vsyn = factor(data$oxy_vsyn,levels=c("1","0"))
data$oxy_vsorresu = factor(data$oxy_vsorresu,levels=c("1","2","3"))
data$fever_ceoccur_v2 = factor(data$fever_ceoccur_v2,levels=c("1","2","3"))
data$cough_ceoccur_v2 = factor(data$cough_ceoccur_v2,levels=c("1","2","3"))
data$coughsput_ceoccur_v2 = factor(data$coughsput_ceoccur_v2,levels=c("1","2","3"))
data$coughhb_ceoccur_v2 = factor(data$coughhb_ceoccur_v2,levels=c("1","2","3"))
data$sorethroat_ceoccur_v2 = factor(data$sorethroat_ceoccur_v2,levels=c("1","2","3"))
data$runnynose_ceoccur_v2 = factor(data$runnynose_ceoccur_v2,levels=c("1","2","3"))
data$earpain_ceoccur_v2 = factor(data$earpain_ceoccur_v2,levels=c("1","2","3"))
data$wheeze_ceoccur_v2 = factor(data$wheeze_ceoccur_v2,levels=c("1","2","3"))
data$chestpain_ceoccur_v2 = factor(data$chestpain_ceoccur_v2,levels=c("1","2","3"))
data$myalgia_ceoccur_v2 = factor(data$myalgia_ceoccur_v2,levels=c("1","2","3"))
data$jointpain_ceoccur_v2 = factor(data$jointpain_ceoccur_v2,levels=c("1","2","3"))
data$fatigue_ceoccur_v2 = factor(data$fatigue_ceoccur_v2,levels=c("1","2","3"))
data$shortbreath_ceoccur_v2 = factor(data$shortbreath_ceoccur_v2,levels=c("1","2","3"))
data$ageusia_ceoccur_v2 = factor(data$ageusia_ceoccur_v2,levels=c("1","2","3"))
data$lowerchest_ceoccur_v2 = factor(data$lowerchest_ceoccur_v2,levels=c("1","2","3"))
data$headache_ceoccur_v2 = factor(data$headache_ceoccur_v2,levels=c("1","2","3"))
data$confusion_ceoccur_v2 = factor(data$confusion_ceoccur_v2,levels=c("1","2","3"))
data$seizures_cecoccur_v2 = factor(data$seizures_cecoccur_v2,levels=c("1","2","3"))
data$abdopain_ceoccur_v2 = factor(data$abdopain_ceoccur_v2,levels=c("1","2","3"))
data$vomit_ceoccur_v2 = factor(data$vomit_ceoccur_v2,levels=c("1","2","3"))
data$diarrhoea_ceoccur_v2 = factor(data$diarrhoea_ceoccur_v2,levels=c("1","2","3"))
data$conjunct_ceoccur_v2 = factor(data$conjunct_ceoccur_v2,levels=c("1","2","3"))
data$rash_ceoccur_v2 = factor(data$rash_ceoccur_v2,levels=c("1","2","3"))
data$skinulcers_ceoccur_v2 = factor(data$skinulcers_ceoccur_v2,levels=c("1","2","3"))
data$lymp_ceoccur_v2 = factor(data$lymp_ceoccur_v2,levels=c("1","2","3"))
data$bleed_ceoccur_v2 = factor(data$bleed_ceoccur_v2,levels=c("1","2","3"))
data$bleed_ceterm_v2 = factor(data$bleed_ceterm_v2,levels=c("1","2","3"))
data$anosmia_ceoccur_v2 = factor(data$anosmia_ceoccur_v2,levels=c("1","2","3"))
data$no_symptoms = factor(data$no_symptoms,levels=c("1","2","3"))
data$admission_signs_and_symptoms_complete = factor(data$admission_signs_and_symptoms_complete,levels=c("0","1","2"))
data$chrincard = factor(data$chrincard,levels=c("1","2","3"))
data$hypertension_mhyn = factor(data$hypertension_mhyn,levels=c("1","2","3"))
data$chronicpul_mhyn = factor(data$chronicpul_mhyn,levels=c("1","2","3"))
data$asthma_mhyn = factor(data$asthma_mhyn,levels=c("1","0","2"))
data$renal_mhyn = factor(data$renal_mhyn,levels=c("1","2","3"))
data$modliv = factor(data$modliv,levels=c("1","0","2"))
data$mildliver = factor(data$mildliver,levels=c("1","0","2"))
data$chronicneu_mhyn = factor(data$chronicneu_mhyn,levels=c("1","2","3"))
data$malignantneo_mhyn = factor(data$malignantneo_mhyn,levels=c("1","2","3"))
data$chronichaemo_mhyn = factor(data$chronichaemo_mhyn,levels=c("1","2","3"))
data$aidshiv_mhyn = factor(data$aidshiv_mhyn,levels=c("1","2","3"))
data$obesity_mhyn = factor(data$obesity_mhyn,levels=c("1","2","3"))
data$diabetes_type_mhyn = factor(data$diabetes_type_mhyn,levels=c("0","1","2","3"))
data$diabetescom_mhyn = factor(data$diabetescom_mhyn,levels=c("1","2","3"))
data$diabetes_mhyn = factor(data$diabetes_mhyn,levels=c("1","2","3"))
data$rheumatologic_mhyn = factor(data$rheumatologic_mhyn,levels=c("1","2","3"))
data$dementia_mhyn = factor(data$dementia_mhyn,levels=c("1","2","3"))
data$malnutrition_mhyn = factor(data$malnutrition_mhyn,levels=c("1","2","3"))
data$smoking_mhyn = factor(data$smoking_mhyn,levels=c("1","2","3","4"))
data$other_mhyn = factor(data$other_mhyn,levels=c("1","2","3"))
data$vulnerable_transplant = factor(data$vulnerable_transplant,levels=c("1","2","3"))
data$vulnerable_cancers = factor(data$vulnerable_cancers,levels=c("1","2","3"))
data$vulnerable_copd = factor(data$vulnerable_copd,levels=c("1","2","3"))
data$vulnerable_scid = factor(data$vulnerable_scid,levels=c("1","2","3"))
data$vulnerable_immuno = factor(data$vulnerable_immuno,levels=c("1","2","3"))
data$vulnerable_preg = factor(data$vulnerable_preg,levels=c("1","2","3"))
data$comorbidities_complete = factor(data$comorbidities_complete,levels=c("0","1","2"))
data$immno_cmtrt = factor(data$immno_cmtrt,levels=c("1","2","3"))
data$infect_cmtrt = factor(data$infect_cmtrt,levels=c("1","2","3"))
data$chronic_ace_cmoccur = factor(data$chronic_ace_cmoccur,levels=c("1","2","3"))
data$chronic_arb_cmoccur = factor(data$chronic_arb_cmoccur,levels=c("1","2","3"))
data$chronic_nsaid_cmoccur = factor(data$chronic_nsaid_cmoccur,levels=c("1","2","3"))
data$clinical_frailty = factor(data$clinical_frailty,levels=c("1","2","3","4","5","6","7","8","9","10"))
data$preadmission_treatment_complete = factor(data$preadmission_treatment_complete,levels=c("0","1","2"))
data$no_medication = factor(data$no_medication,levels=c("1"))
data$cmdose_unit = factor(data$cmdose_unit,levels=c("1","2","3","4","5","99"))
data$cmdosfrq = factor(data$cmdosfrq,levels=c("1","2","3","4","5","6","7","8","9","10","11","99"))
data$cmroute = factor(data$cmroute,levels=c("1","2","3","4","5"))
data$preadmission_medication_complete = factor(data$preadmission_medication_complete,levels=c("0","1","2"))
data$reinf_pcr = factor(data$reinf_pcr,levels=c("1","0","3"))
data$reinf_antigen = factor(data$reinf_antigen,levels=c("1","0","3"))
data$reinf_serology = factor(data$reinf_serology,levels=c("1","0","3"))
data$reinf_asymptomatic = factor(data$reinf_asymptomatic,levels=c("1"))
data$fever_ceoccur_v3 = factor(data$fever_ceoccur_v3,levels=c("1","2","3"))
data$cough_ceoccur_v3 = factor(data$cough_ceoccur_v3,levels=c("1","2","3"))
data$coughsput_ceoccur_v3 = factor(data$coughsput_ceoccur_v3,levels=c("1","2","3"))
data$coughhb_ceoccur_v3 = factor(data$coughhb_ceoccur_v3,levels=c("1","2","3"))
data$sorethroat_ceoccur_v3 = factor(data$sorethroat_ceoccur_v3,levels=c("1","2","3"))
data$runnynose_ceoccur_v3 = factor(data$runnynose_ceoccur_v3,levels=c("1","2","3"))
data$earpain_ceoccur_v3 = factor(data$earpain_ceoccur_v3,levels=c("1","2","3"))
data$wheeze_ceoccur_v3 = factor(data$wheeze_ceoccur_v3,levels=c("1","2","3"))
data$chestpain_ceoccur_v3 = factor(data$chestpain_ceoccur_v3,levels=c("1","2","3"))
data$myalgia_ceoccur_v3 = factor(data$myalgia_ceoccur_v3,levels=c("1","2","3"))
data$jointpain_ceoccur_v3 = factor(data$jointpain_ceoccur_v3,levels=c("1","2","3"))
data$fatigue_ceoccur_v3 = factor(data$fatigue_ceoccur_v3,levels=c("1","2","3"))
data$shortbreath_ceoccur_v3 = factor(data$shortbreath_ceoccur_v3,levels=c("1","2","3"))
data$ageusia_ceoccur_v3 = factor(data$ageusia_ceoccur_v3,levels=c("1","2","3"))
data$lowerchest_ceoccur_v3 = factor(data$lowerchest_ceoccur_v3,levels=c("1","2","3"))
data$headache_ceoccur_v3 = factor(data$headache_ceoccur_v3,levels=c("1","2","3"))
data$confusion_ceoccur_v3 = factor(data$confusion_ceoccur_v3,levels=c("1","2","3"))
data$seizures_cecoccur_v3 = factor(data$seizures_cecoccur_v3,levels=c("1","2","3"))
data$abdopain_ceoccur_v3 = factor(data$abdopain_ceoccur_v3,levels=c("1","2","3"))
data$vomit_ceoccur_v3 = factor(data$vomit_ceoccur_v3,levels=c("1","2","3"))
data$diarrhoea_ceoccur_v3 = factor(data$diarrhoea_ceoccur_v3,levels=c("1","2","3"))
data$conjunct_ceoccur_v3 = factor(data$conjunct_ceoccur_v3,levels=c("1","2","3"))
data$rash_ceoccur_v3 = factor(data$rash_ceoccur_v3,levels=c("1","2","3"))
data$skinulcers_ceoccur_v3 = factor(data$skinulcers_ceoccur_v3,levels=c("1","2","3"))
data$lymp_ceoccur_v3 = factor(data$lymp_ceoccur_v3,levels=c("1","2","3"))
data$bleed_ceoccur_v3 = factor(data$bleed_ceoccur_v3,levels=c("1","2","3"))
data$anosmia_ceoccur_v3 = factor(data$anosmia_ceoccur_v3,levels=c("1","2","3"))
data$no_symptoms_v3 = factor(data$no_symptoms_v3,levels=c("1","2","3"))
data$reinf_pre_adm_hosp = factor(data$reinf_pre_adm_hosp,levels=c("1","2","3"))
data$reinf_pre_oxygen = factor(data$reinf_pre_oxygen,levels=c("1","2","3"))
data$reinf_pre_hdu_icu = factor(data$reinf_pre_hdu_icu,levels=c("1","2","3"))
data$reinf_pre_inv_vent = factor(data$reinf_pre_inv_vent,levels=c("1","2","3"))
data$reinf_pre_ecmo = factor(data$reinf_pre_ecmo,levels=c("1","2","3"))
data$reinf_pre_dexameth = factor(data$reinf_pre_dexameth,levels=c("1","2","3"))
data$reinf_pre_steroid = factor(data$reinf_pre_steroid,levels=c("1","2","3"))
data$reinf_pre_tociliz = factor(data$reinf_pre_tociliz,levels=c("1","2","3"))
data$reinf_pre_remdesivir = factor(data$reinf_pre_remdesivir,levels=c("1","2","3"))
data$reinf_pre_conv_plasma = factor(data$reinf_pre_conv_plasma,levels=c("1","2","3"))
data$reinf_pre_lopin_riton = factor(data$reinf_pre_lopin_riton,levels=c("1","2","3"))
data$reinf_pre_interferon = factor(data$reinf_pre_interferon,levels=c("1","2","3"))
data$reinf_pre_chloro_hchlo = factor(data$reinf_pre_chloro_hchlo,levels=c("1","2","3"))
data$reinfection_form_complete = factor(data$reinfection_form_complete,levels=c("0","1","2"))
data$daily_hoterm = factor(data$daily_hoterm,levels=c("1","2","3"))
data$daily_temp_vsorresu = factor(data$daily_temp_vsorresu,levels=c("1","2"))
data$daily_temp_vsorresnk = factor(data$daily_temp_vsorresnk,levels=c("1"))
data$daily_fi02_lbyn = factor(data$daily_fi02_lbyn,levels=c("1","2","3"))
data$daily_sa02_lbyn = factor(data$daily_sa02_lbyn,levels=c("1","2","3"))
data$daily_pao2_lbyn = factor(data$daily_pao2_lbyn,levels=c("1","0"))
data$daily_pao2_lborresu = factor(data$daily_pao2_lborresu,levels=c("1","2"))
data$daily_pao2_lbspec = factor(data$daily_pao2_lbspec,levels=c("1","2","3","4"))
data$daily_pco2_lbyn = factor(data$daily_pco2_lbyn,levels=c("1","2"))
data$daily_pco2_lborresu = factor(data$daily_pco2_lborresu,levels=c("1","2"))
data$daily_ph_lbyn = factor(data$daily_ph_lbyn,levels=c("1","0"))
data$daily_hco3_lbyn = factor(data$daily_hco3_lbyn,levels=c("1","0"))
data$daily_hco3_lborresu = factor(data$daily_hco3_lborresu,levels=c("1","2"))
data$daily_baseex_lbyn = factor(data$daily_baseex_lbyn,levels=c("1","0"))
data$avpu_vsorres = factor(data$avpu_vsorres,levels=c("1","2","3","4","5"))
data$daily_gcs_lbyn = factor(data$daily_gcs_lbyn,levels=c("1","0","3"))
data$systolic_vsyn = factor(data$systolic_vsyn,levels=c("1","0"))
data$diastolic_vsyn = factor(data$diastolic_vsyn,levels=c("1","0"))
data$daily_meanart_lbyn = factor(data$daily_meanart_lbyn,levels=c("1","0"))
data$daily_urine_lbyn = factor(data$daily_urine_lbyn,levels=c("1","2","0"))
data$daily_noninvasive_prtrt = factor(data$daily_noninvasive_prtrt,levels=c("1","2","3"))
data$daily_invasive_prtrt = factor(data$daily_invasive_prtrt,levels=c("1","2","3"))
data$daily_nasaloxy_cmtrt = factor(data$daily_nasaloxy_cmtrt,levels=c("1","2","3"))
data$daily_ecmo_prtrt = factor(data$daily_ecmo_prtrt,levels=c("1","2","3"))
data$daily_rrt_cmtrt = factor(data$daily_rrt_cmtrt,levels=c("1","2","3"))
data$daily_inotrope_cmyn = factor(data$daily_inotrope_cmyn,levels=c("1","2","3"))
data$daily_dopless5_cmtrt = factor(data$daily_dopless5_cmtrt,levels=c("1","2","3"))
data$daily_dop5to15_cmtrt = factor(data$daily_dop5to15_cmtrt,levels=c("1","2","3"))
data$daily_dopgr15_cmtrt = factor(data$daily_dopgr15_cmtrt,levels=c("1","2","3"))
data$daily_neuro_cmtrt = factor(data$daily_neuro_cmtrt,levels=c("1","2","3"))
data$daily_nitritc_cmtrt = factor(data$daily_nitritc_cmtrt,levels=c("1","2","3"))
data$daily_prone_cmtrt = factor(data$daily_prone_cmtrt,levels=c("1","2","3"))
data$daily_trach_prperf = factor(data$daily_trach_prperf,levels=c("1","2","3"))
data$daily_prperf = factor(data$daily_prperf,levels=c("1","2","3"))
data$remdesivir = factor(data$remdesivir,levels=c("1","0","2"))
data$remdesivir_last_dose = factor(data$remdesivir_last_dose,levels=c("1","0","2"))
data$daily_lbperf = factor(data$daily_lbperf,levels=c("1","0"))
data$daily_hb_lbyn = factor(data$daily_hb_lbyn,levels=c("1","0","3"))
data$daily_hbop_lborres = factor(data$daily_hbop_lborres,levels=c("1","2"))
data$daily_hb_lborresu = factor(data$daily_hb_lborresu,levels=c("1","2"))
data$daily_wbc_lbyn = factor(data$daily_wbc_lbyn,levels=c("1","0","3"))
data$daily_wbcop_lborres = factor(data$daily_wbcop_lborres,levels=c("1","2"))
data$daily_wbc_lborresu = factor(data$daily_wbc_lborresu,levels=c("1","2"))
data$daily_lymp_lbyn = factor(data$daily_lymp_lbyn,levels=c("1","0","3"))
data$daily_lympop_lbyn = factor(data$daily_lympop_lbyn,levels=c("1","2"))
data$daily_lymp_lborresu = factor(data$daily_lymp_lborresu,levels=c("1","2","3"))
data$daily_neutro_lbyn = factor(data$daily_neutro_lbyn,levels=c("1","0","3"))
data$daily_neutroop_lbyn = factor(data$daily_neutroop_lbyn,levels=c("1","2"))
data$daily_neutro_lborresu = factor(data$daily_neutro_lborresu,levels=c("1","2","3"))
data$daily_haematocrit_lbyn = factor(data$daily_haematocrit_lbyn,levels=c("1","0"))
data$daily_haematocrit_lborresu = factor(data$daily_haematocrit_lborresu,levels=c("1","2"))
data$daily_plt_lbyn = factor(data$daily_plt_lbyn,levels=c("1","0","3"))
data$daily_pltop_lborres = factor(data$daily_pltop_lborres,levels=c("1","2"))
data$daily_plt_lborresu = factor(data$daily_plt_lborresu,levels=c("1","2"))
data$daily_aptt_lbyn = factor(data$daily_aptt_lbyn,levels=c("1","0","3"))
data$daily_apttop_lborres = factor(data$daily_apttop_lborres,levels=c("1","2"))
data$daily_pt_inr_lbyn = factor(data$daily_pt_inr_lbyn,levels=c("1","2","3","4"))
data$daily_ptop_lborres = factor(data$daily_ptop_lborres,levels=c("1","2"))
data$daily_inrop_lborres = factor(data$daily_inrop_lborres,levels=c("1","2"))
data$daily_esr_lbyn = factor(data$daily_esr_lbyn,levels=c("1","0","3"))
data$daily_esrop_lbyn = factor(data$daily_esrop_lbyn,levels=c("1","2"))
data$daily_ferr_lbyn = factor(data$daily_ferr_lbyn,levels=c("1","0","3"))
data$daily_ferrop_lbyn = factor(data$daily_ferrop_lbyn,levels=c("1","2"))
data$daily_ferr_lborresu = factor(data$daily_ferr_lborresu,levels=c("1","2"))
data$daily_alt_lbyn = factor(data$daily_alt_lbyn,levels=c("1","0","3"))
data$daily_altop_lbyn = factor(data$daily_altop_lbyn,levels=c("1","2"))
data$daily_bil_lbyn = factor(data$daily_bil_lbyn,levels=c("1","0","3"))
data$daily_bilop_lborres = factor(data$daily_bilop_lborres,levels=c("1","2"))
data$daily_bil_lborresu = factor(data$daily_bil_lborresu,levels=c("1","2"))
data$daily_ast_lbyn = factor(data$daily_ast_lbyn,levels=c("1","0","3"))
data$daily_astop_lborres = factor(data$daily_astop_lborres,levels=c("1","2"))
data$daily_glucose_lbyn = factor(data$daily_glucose_lbyn,levels=c("1","0","3"))
data$daily_glucoseop_lborres = factor(data$daily_glucoseop_lborres,levels=c("1","2"))
data$daily_glucose_lborresu = factor(data$daily_glucose_lborresu,levels=c("1","2"))
data$daily_bun_lbyn = factor(data$daily_bun_lbyn,levels=c("1","0","3"))
data$daily_bunop_lborres = factor(data$daily_bunop_lborres,levels=c("1","2"))
data$daily_bun_lborresu = factor(data$daily_bun_lborresu,levels=c("1","2"))
data$daily_lactate_lbyn = factor(data$daily_lactate_lbyn,levels=c("1","0","3"))
data$daily_lactateop_lbyn = factor(data$daily_lactateop_lbyn,levels=c("1","2"))
data$daily_lactate_lborresu = factor(data$daily_lactate_lborresu,levels=c("1","2"))
data$daily_ldh_lbyn = factor(data$daily_ldh_lbyn,levels=c("1","0","3"))
data$daily_ldhop_lborres = factor(data$daily_ldhop_lborres,levels=c("1","2"))
data$daily_cpk_lby = factor(data$daily_cpk_lby,levels=c("1","0","3"))
data$daily_cpkop_lbyn_2 = factor(data$daily_cpkop_lbyn_2,levels=c("1","2"))
data$daily_creat_lbyn = factor(data$daily_creat_lbyn,levels=c("1","0","3"))
data$daily_creatop_lborres = factor(data$daily_creatop_lborres,levels=c("1","2"))
data$daily_creat_lborresu = factor(data$daily_creat_lborresu,levels=c("1","2","3"))
data$daily_sodium_lbyn = factor(data$daily_sodium_lbyn,levels=c("1","0","3"))
data$daily_sodiumop_lborres = factor(data$daily_sodiumop_lborres,levels=c("1","2"))
data$daily_sodium_lborresu = factor(data$daily_sodium_lborresu,levels=c("1","2"))
data$daily_potassium_lbyn = factor(data$daily_potassium_lbyn,levels=c("1","0","3"))
data$daily_potassiumop_lborres = factor(data$daily_potassiumop_lborres,levels=c("1","2"))
data$daily_potassium_lborresu = factor(data$daily_potassium_lborresu,levels=c("1","2"))
data$daily_procal_lbyn = factor(data$daily_procal_lbyn,levels=c("1","0","3"))
data$daily_procalop_lborres = factor(data$daily_procalop_lborres,levels=c("1","2"))
data$daily_crp_lbyn = factor(data$daily_crp_lbyn,levels=c("1","0","3"))
data$daily_crpop_lborres = factor(data$daily_crpop_lborres,levels=c("1","2"))
data$daily_crp_lborresu = factor(data$daily_crp_lborresu,levels=c("1","2","3"))
data$daily_egfr_lbyn = factor(data$daily_egfr_lbyn,levels=c("1","0","3"))
data$daily_egfrop_lborres = factor(data$daily_egfrop_lborres,levels=c("1","2"))
data$daily_egfr_equation___1 = factor(data$daily_egfr_equation___1,levels=c("0","1"))
data$daily_egfr_equation___2 = factor(data$daily_egfr_equation___2,levels=c("0","1"))
data$daily_egfr_equation___3 = factor(data$daily_egfr_equation___3,levels=c("0","1"))
data$daily_egfr_equation___4 = factor(data$daily_egfr_equation___4,levels=c("0","1"))
data$daily_hba1cop_lborres = factor(data$daily_hba1cop_lborres,levels=c("1","2"))
data$daily_hba1c_lborresu = factor(data$daily_hba1c_lborresu,levels=c("1","2"))
data$daily_hba1c_lborresnk = factor(data$daily_hba1c_lborresnk,levels=c("1"))
data$xray_prperf = factor(data$xray_prperf,levels=c("1","2","3"))
data$infiltrates_faorres = factor(data$infiltrates_faorres,levels=c("1","2","3"))
data$daily_samples = factor(data$daily_samples,levels=c("1","0"))
data$daily_form_complete = factor(data$daily_form_complete,levels=c("0","1","2"))
data$mbperf = factor(data$mbperf,levels=c("1","2","3"))
data$cov19sars_mbyn_v2 = factor(data$cov19sars_mbyn_v2,levels=c("2","1","0"))
data$influ_mbyn = factor(data$influ_mbyn,levels=c("2","1","0"))
data$influ_mbyn_v2 = factor(data$influ_mbyn_v2,levels=c("2","1","0"))
data$influ_mbcat = factor(data$influ_mbcat,levels=c("1","2","3","4","5","7","6","888"))
data$corna_mbcat = factor(data$corna_mbcat,levels=c("2","1","0"))
data$corna_mbcaty = factor(data$corna_mbcaty,levels=c("1","2","3","888"))
data$rsv_mbcat = factor(data$rsv_mbcat,levels=c("2","1","0"))
data$rsv_mbcat_v2 = factor(data$rsv_mbcat_v2,levels=c("2","1","0"))
data$adeno_mbcat = factor(data$adeno_mbcat,levels=c("2","1","0"))
data$adeno_mbcat_v2 = factor(data$adeno_mbcat_v2,levels=c("2","1","0"))
data$bact_mborres = factor(data$bact_mborres,levels=c("1","2"))
data$clinicalpneu_mborres = factor(data$clinicalpneu_mborres,levels=c("1","0","2"))
data$infectuk_mborres = factor(data$infectuk_mborres,levels=c("1","2"))
data$pcr_path_diag___0 = factor(data$pcr_path_diag___0,levels=c("0","1"))
data$pcr_path_diag___1 = factor(data$pcr_path_diag___1,levels=c("0","1"))
data$pcr_path_diag___2 = factor(data$pcr_path_diag___2,levels=c("0","1"))
data$pcr_path_diag___3 = factor(data$pcr_path_diag___3,levels=c("0","1"))
data$pcr_path_diag___4 = factor(data$pcr_path_diag___4,levels=c("0","1"))
data$pcr_path_diag___5 = factor(data$pcr_path_diag___5,levels=c("0","1"))
data$pcr_path_diag___6 = factor(data$pcr_path_diag___6,levels=c("0","1"))
data$pcr_path_diag___10 = factor(data$pcr_path_diag___10,levels=c("0","1"))
data$other_mbyn = factor(data$other_mbyn,levels=c("2","1","0"))
data$infectious_respiratory_disease_pathogen_diagnosis_complete = factor(data$infectious_respiratory_disease_pathogen_diagnosis_complete,levels=c("0","1","2"))
data$daily_mbperf = factor(data$daily_mbperf,levels=c("1","0"))
data$mbspec = factor(data$mbspec,levels=c("1","2","3","4","5","6","7","8","9","10","11","12","13","15","14"))
data$mbmethod = factor(data$mbmethod,levels=c("1","2","3"))
data$mborres = factor(data$mborres,levels=c("1","2","3"))
data$mbspec_v2 = factor(data$mbspec_v2,levels=c("7","1","2","3","4","5","6"))
data$mborres_v2 = factor(data$mborres_v2,levels=c("1","2","3"))
data$mbtestcd_nsth = factor(data$mbtestcd_nsth,levels=c("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","40"))
data$mbtestcd_bc = factor(data$mbtestcd_bc,levels=c("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","40"))
data$mbtestcd_sp = factor(data$mbtestcd_sp,levels=c("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","40"))
data$mbtestcd_drs = factor(data$mbtestcd_drs,levels=c("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","40"))
data$mbtestcd_ur = factor(data$mbtestcd_ur,levels=c("1","2","3","4","5","6","7","8","9","10","11","12","13","14","40"))
data$mbtestcd_csf = factor(data$mbtestcd_csf,levels=c("1","2","3","4","5","6","7","40"))
data$mbtestcd_fst = factor(data$mbtestcd_fst,levels=c("1","2","3","4","5","40"))
data$mbspec_v3 = factor(data$mbspec_v3,levels=c("1","2","3","4","10"))
data$infectious_respiratory_disease_pathogen_testing_complete = factor(data$infectious_respiratory_disease_pathogen_testing_complete,levels=c("0","1","2"))
data$antiviral_cmyn = factor(data$antiviral_cmyn,levels=c("1","2","3"))
data$antiviral_cmtrt___1 = factor(data$antiviral_cmtrt___1,levels=c("0","1"))
data$antiviral_cmtrt___2 = factor(data$antiviral_cmtrt___2,levels=c("0","1"))
data$antiviral_cmtrt___3 = factor(data$antiviral_cmtrt___3,levels=c("0","1"))
data$antiviral_cmtrt___4 = factor(data$antiviral_cmtrt___4,levels=c("0","1"))
data$antiviral_cmtrt___7 = factor(data$antiviral_cmtrt___7,levels=c("0","1"))
data$antiviral_cmtrt___10 = factor(data$antiviral_cmtrt___10,levels=c("0","1"))
data$antiviral_cmtrt___11 = factor(data$antiviral_cmtrt___11,levels=c("0","1"))
data$antiviral_cmtrt___8 = factor(data$antiviral_cmtrt___8,levels=c("0","1"))
data$antiviral_cmtrt___9 = factor(data$antiviral_cmtrt___9,levels=c("0","1"))
data$antiviral_cmtrt___5 = factor(data$antiviral_cmtrt___5,levels=c("0","1"))
data$antiviral_cmtrt___6 = factor(data$antiviral_cmtrt___6,levels=c("0","1"))
data$il6_cmtrt = factor(data$il6_cmtrt,levels=c("1","2","3","10"))
data$othantiviral2_cmyn = factor(data$othantiviral2_cmyn,levels=c("1","0"))
data$othantiviral3_cmyn = factor(data$othantiviral3_cmyn,levels=c("1","0"))
data$othantiviral4_cmyn = factor(data$othantiviral4_cmyn,levels=c("1","0"))
data$othantiviral5_cmyn = factor(data$othantiviral5_cmyn,levels=c("1","0"))
data$antibiotic_cmyn = factor(data$antibiotic_cmyn,levels=c("1","2","3"))
data$antibiotic2_cmyn = factor(data$antibiotic2_cmyn,levels=c("1","2","3"))
data$antibiotic3_cmyn = factor(data$antibiotic3_cmyn,levels=c("1","2","3"))
data$antibiotic4_cmyn = factor(data$antibiotic4_cmyn,levels=c("1","2","3"))
data$antibiotic5_cmyn = factor(data$antibiotic5_cmyn,levels=c("1","2","3"))
data$antibiotic6_cmyn = factor(data$antibiotic6_cmyn,levels=c("1","2","3"))
data$antibiotic7_cmyn = factor(data$antibiotic7_cmyn,levels=c("1","2","3"))
data$corticost_cmyn = factor(data$corticost_cmyn,levels=c("1","2","3"))
data$corticost_cmtrt_type = factor(data$corticost_cmtrt_type,levels=c("1","2","88"))
data$corticost_cmroute = factor(data$corticost_cmroute,levels=c("1","2","3"))
data$corticost2_cmyn = factor(data$corticost2_cmyn,levels=c("1","2","3"))
data$corticost2_cmtrt_type = factor(data$corticost2_cmtrt_type,levels=c("1","2","88"))
data$corticost2_cmroute = factor(data$corticost2_cmroute,levels=c("1","2","3"))
data$corticost3_cmyn = factor(data$corticost3_cmyn,levels=c("1","2","3"))
data$corticost3_cmtrt_type = factor(data$corticost3_cmtrt_type,levels=c("1","2","88"))
data$corticost3_cmroute = factor(data$corticost3_cmroute,levels=c("1","2","3"))
data$dexamethasone = factor(data$dexamethasone,levels=c("1","2","3","4","5","6"))
data$dexamethasone_freq = factor(data$dexamethasone_freq,levels=c("1","2","3","4","5","6","7","8","9","10","11","99"))
data$dexamethasone_route = factor(data$dexamethasone_route,levels=c("1","2"))
data$antifung_cmyn = factor(data$antifung_cmyn,levels=c("1","2","3"))
data$offlabel_cmyn = factor(data$offlabel_cmyn,levels=c("1","2","3"))
data$interleukin_cmyn = factor(data$interleukin_cmyn,levels=c("1","2","3"))
data$conv_plasma_cmyn = factor(data$conv_plasma_cmyn,levels=c("1","2","3"))
data$icu_hoterm = factor(data$icu_hoterm,levels=c("1","2","3"))
data$icu_no = factor(data$icu_no,levels=c("1","2"))
data$icu_hostdatnk = factor(data$icu_hostdatnk,levels=c("1"))
data$icu_hoendatnk = factor(data$icu_hoendatnk,levels=c("1"))
data$icu_hostdat2_nk = factor(data$icu_hostdat2_nk,levels=c("1"))
data$icu_hoendat2_nk = factor(data$icu_hoendat2_nk,levels=c("1"))
data$icu_hostdat3_nk = factor(data$icu_hostdat3_nk,levels=c("1"))
data$icu_hoendat3_nk = factor(data$icu_hoendat3_nk,levels=c("1"))
data$icu_hostillin = factor(data$icu_hostillin,levels=c("1"))
data$oxygen_cmoccur = factor(data$oxygen_cmoccur,levels=c("1","2","3"))
data$oxygenhf_cmoccur = factor(data$oxygenhf_cmoccur,levels=c("1","2","3"))
data$noninvasive_proccur = factor(data$noninvasive_proccur,levels=c("1","2","3"))
data$invasive_proccur = factor(data$invasive_proccur,levels=c("1","2","3"))
data$pronevent_prtrt = factor(data$pronevent_prtrt,levels=c("1","2","3"))
data$inhalednit_cmtrt = factor(data$inhalednit_cmtrt,levels=c("1","2","3"))
data$tracheo_prtrt = factor(data$tracheo_prtrt,levels=c("1","2","3"))
data$extracorp_prtrt = factor(data$extracorp_prtrt,levels=c("1","2","3"))
data$rrt_prtrt = factor(data$rrt_prtrt,levels=c("1","2","3"))
data$inotrop_cmtrt = factor(data$inotrop_cmtrt,levels=c("1","2","3"))
data$invasive_still_on = factor(data$invasive_still_on,levels=c("1"))
data$excorp_still_on = factor(data$excorp_still_on,levels=c("1"))
data$rrt_still_on = factor(data$rrt_still_on,levels=c("1"))
data$inotrope_still_on = factor(data$inotrope_still_on,levels=c("1"))
data$other_cmyn = factor(data$other_cmyn,levels=c("1","2","3"))
data$bloodgroup = factor(data$bloodgroup,levels=c("1","2","3","4","9"))
data$treatment_complete = factor(data$treatment_complete,levels=c("0","1","2"))
data$vrialpneu_ceoccur = factor(data$vrialpneu_ceoccur,levels=c("1","2","3"))
data$bactpneu_ceoccur = factor(data$bactpneu_ceoccur,levels=c("1","2","3"))
data$ards_ceoccur = factor(data$ards_ceoccur,levels=c("1","2","3"))
data$cryptogenic_ceterm = factor(data$cryptogenic_ceterm,levels=c("1","2","3"))
data$pneumothorax_ceterm = factor(data$pneumothorax_ceterm,levels=c("1","2","3"))
data$pleuraleff_ceterm = factor(data$pleuraleff_ceterm,levels=c("1","2","3"))
data$bronchio_ceterm = factor(data$bronchio_ceterm,levels=c("1","2","3"))
data$meningitis_ceterm = factor(data$meningitis_ceterm,levels=c("1","2","3"))
data$seizure_ceterm = factor(data$seizure_ceterm,levels=c("1","2","3"))
data$stroke_ceterm = factor(data$stroke_ceterm,levels=c("1","2","3"))
data$neuro_comp = factor(data$neuro_comp,levels=c("1","2","3"))
data$heartfailure_ceterm = factor(data$heartfailure_ceterm,levels=c("1","2","3"))
data$endocarditis_aeterm = factor(data$endocarditis_aeterm,levels=c("1","2","3"))
data$myocarditis_ceterm = factor(data$myocarditis_ceterm,levels=c("1","2","3"))
data$cardiomyopathy_ceterm = factor(data$cardiomyopathy_ceterm,levels=c("1","2","3"))
data$arrhythmia_ceterm = factor(data$arrhythmia_ceterm,levels=c("1","2","3"))
data$ischaemia_ceterm = factor(data$ischaemia_ceterm,levels=c("1","2","3"))
data$cardiacarrest_ceterm = factor(data$cardiacarrest_ceterm,levels=c("1","2","3"))
data$bacteraemia_ceterm = factor(data$bacteraemia_ceterm,levels=c("1","2","3"))
data$coagulo_ceterm = factor(data$coagulo_ceterm,levels=c("1","2","3"))
data$dvt_ceterm = factor(data$dvt_ceterm,levels=c("1","2","3"))
data$pulmthromb_ceterm = factor(data$pulmthromb_ceterm,levels=c("1","2","3"))
data$aneamia_ceterm = factor(data$aneamia_ceterm,levels=c("1","2","3"))
data$rhabdomyolsis_ceterm = factor(data$rhabdomyolsis_ceterm,levels=c("1","2","3"))
data$renalinjury_ceterm = factor(data$renalinjury_ceterm,levels=c("1","2","3"))
data$gastro_ceterm = factor(data$gastro_ceterm,levels=c("1","2","3"))
data$pancreat_ceterm = factor(data$pancreat_ceterm,levels=c("1","2","3"))
data$liverdysfunction_ceterm = factor(data$liverdysfunction_ceterm,levels=c("1","2","3"))
data$hyperglycemia_aeterm = factor(data$hyperglycemia_aeterm,levels=c("1","2","3"))
data$hypoglycemia_ceterm = factor(data$hypoglycemia_ceterm,levels=c("1","2","3"))
data$other_ceoccur = factor(data$other_ceoccur,levels=c("1","2","3"))
data$complications_complete = factor(data$complications_complete,levels=c("0","1","2"))
data$recruitment = factor(data$recruitment,levels=c("1","0"))
data$study_2 = factor(data$study_2,levels=c("1","0"))
data$study_3 = factor(data$study_3,levels=c("1","0"))
data$study_participation_complete = factor(data$study_participation_complete,levels=c("0","1","2"))
data$dsterm = factor(data$dsterm,levels=c("1","2","3","4","5","6"))
data$dshosp = factor(data$dshosp,levels=c("1","3","2"))
data$dsstdtcyn = factor(data$dsstdtcyn,levels=c("1","2","3"))
data$suppds_qval = factor(data$suppds_qval,levels=c("1","2","3","4"))
data$oxygen_proccur = factor(data$oxygen_proccur,levels=c("1","2","3"))
data$renal_proccur = factor(data$renal_proccur,levels=c("1","2","3"))
data$other_cmoccur = factor(data$other_cmoccur,levels=c("1","2","3"))
data$siteidnk = factor(data$siteidnk,levels=c("1"))
data$siteyn = factor(data$siteyn,levels=c("1","2","3"))
data$subjidcat = factor(data$subjidcat,levels=c("1","2","3"))
data$outcome_complete = factor(data$outcome_complete,levels=c("0","1","2"))
data$dsterm_v2 = factor(data$dsterm_v2,levels=c("1","5","4","3","6"))
data$dsstdtc_v2_nk = factor(data$dsstdtc_v2_nk,levels=c("1"))
data$suppds_qval_v2 = factor(data$suppds_qval_v2,levels=c("1","2","3","4"))
data$oxygen_proccur_v2 = factor(data$oxygen_proccur_v2,levels=c("1","2","3"))
data$siteid_v2_nk = factor(data$siteid_v2_nk,levels=c("1"))
data$siteyn_v2 = factor(data$siteyn_v2,levels=c("1","2","3"))
data$siteyn_v3 = factor(data$siteyn_v3,levels=c("1","2","3"))
data$final_outcome_complete = factor(data$final_outcome_complete,levels=c("0","1","2"))
data$core_additional_information_complete = factor(data$core_additional_information_complete,levels=c("0","1","2"))
data$withdtype = factor(data$withdtype,levels=c("1","10"))
data$withdrawal_form_complete = factor(data$withdrawal_form_complete,levels=c("0","1","2"))
data$consent_given = factor(data$consent_given,levels=c("1","0"))
data$consent_mode___1 = factor(data$consent_mode___1,levels=c("0","1"))
data$consent_mode___2 = factor(data$consent_mode___2,levels=c("0","1"))
data$consent_mode___3 = factor(data$consent_mode___3,levels=c("0","1"))
data$consent_mode___4 = factor(data$consent_mode___4,levels=c("0","1"))
data$consent_mode___5 = factor(data$consent_mode___5,levels=c("0","1"))
data$consent_mode___6 = factor(data$consent_mode___6,levels=c("0","1"))
data$consent_mode___7 = factor(data$consent_mode___7,levels=c("0","1"))
data$consent_mode___8 = factor(data$consent_mode___8,levels=c("0","1"))
data$consent_mode___9 = factor(data$consent_mode___9,levels=c("0","1"))
data$consent_mode___10 = factor(data$consent_mode___10,levels=c("0","1"))
data$consent_mode___11 = factor(data$consent_mode___11,levels=c("0","1"))
data$consent_optcondit___1 = factor(data$consent_optcondit___1,levels=c("0","1"))
data$consent_optcondit___2 = factor(data$consent_optcondit___2,levels=c("0","1"))
data$consent_optcondit___3 = factor(data$consent_optcondit___3,levels=c("0","1"))
data$consent_optcondit___4 = factor(data$consent_optcondit___4,levels=c("0","1"))
data$consent_ctu_dms_complete = factor(data$consent_ctu_dms_complete,levels=c("0","1","2"))
data$confirmed_negative_pcr = factor(data$confirmed_negative_pcr,levels=c("1"))
data$confirmed_negative_pcr_complete = factor(data$confirmed_negative_pcr_complete,levels=c("0","1","2"))
data$flw_consent_init = factor(data$flw_consent_init,levels=c("1","0"))
data$flw_consent_3_6m = factor(data$flw_consent_3_6m,levels=c("1","0"))
data$flw_consent_phone = factor(data$flw_consent_phone,levels=c("1","0"))
data$flw_consent_signed = factor(data$flw_consent_signed,levels=c("1","0"))
data$follow_up_consent_complete = factor(data$follow_up_consent_complete,levels=c("0","1","2"))
data$flw_survey_completed_by = factor(data$flw_survey_completed_by,levels=c("1","2","3"))
data$flw_desceased_lost = factor(data$flw_desceased_lost,levels=c("1","2"))
data$flw_date_deathnk = factor(data$flw_date_deathnk,levels=c("1"))
data$flw_date_lost_flwnk = factor(data$flw_date_lost_flwnk,levels=c("1"))
data$flw_covid19_adm = factor(data$flw_covid19_adm,levels=c("1","0"))
data$flw_covid19_readm = factor(data$flw_covid19_readm,levels=c("1","0"))
data$flw_icu = factor(data$flw_icu,levels=c("1","0","2"))
data$flw_recovered = factor(data$flw_recovered,levels=c("1","0","2"))
data$flw_fever = factor(data$flw_fever,levels=c("1","0","2"))
data$flw_last_fever = factor(data$flw_last_fever,levels=c("1","2","3","4","5"))
data$flw_illness_cause___1 = factor(data$flw_illness_cause___1,levels=c("0","1"))
data$flw_illness_cause___2 = factor(data$flw_illness_cause___2,levels=c("0","1"))
data$flw_illness_cause___3 = factor(data$flw_illness_cause___3,levels=c("0","1"))
data$flw_illness_cause___4 = factor(data$flw_illness_cause___4,levels=c("0","1"))
data$flw_illness_cause___5 = factor(data$flw_illness_cause___5,levels=c("0","1"))
data$flw_illness_cause___6 = factor(data$flw_illness_cause___6,levels=c("0","1"))
data$flw_illness_cause___7 = factor(data$flw_illness_cause___7,levels=c("0","1"))
data$flw_diag_dvt = factor(data$flw_diag_dvt,levels=c("1","0","99"))
data$flw_diag_stroke = factor(data$flw_diag_stroke,levels=c("1","0","99"))
data$flw_diag_pe = factor(data$flw_diag_pe,levels=c("1","0","99"))
data$flw_diag_heart_attack = factor(data$flw_diag_heart_attack,levels=c("1","0","99"))
data$flw_diag_kidney = factor(data$flw_diag_kidney,levels=c("1","0","99"))
data$flw_headache = factor(data$flw_headache,levels=c("1","0","99"))
data$flw_balance = factor(data$flw_balance,levels=c("1","0","99"))
data$flw_cough = factor(data$flw_cough,levels=c("1","0","99"))
data$flw_limb_weakness = factor(data$flw_limb_weakness,levels=c("1","0","99"))
data$flw_loss_smell = factor(data$flw_loss_smell,levels=c("1","0","99"))
data$flw_pain_breathing = factor(data$flw_pain_breathing,levels=c("1","0","99"))
data$flw_loss_taste = factor(data$flw_loss_taste,levels=c("1","0","99"))
data$flw_chest_pains = factor(data$flw_chest_pains,levels=c("1","0","99"))
data$flw_breathless = factor(data$flw_breathless,levels=c("1","0","99"))
data$flw_palpitations = factor(data$flw_palpitations,levels=c("1","0","99"))
data$flw_muscle_pain = factor(data$flw_muscle_pain,levels=c("1","0","99"))
data$flw_weight_loss = factor(data$flw_weight_loss,levels=c("1","0","99"))
data$flw_joint_pain = factor(data$flw_joint_pain,levels=c("1","0","99"))
data$flw_appetite = factor(data$flw_appetite,levels=c("1","0","99"))
data$flw_swollen_ankle = factor(data$flw_swollen_ankle,levels=c("1","0","99"))
data$flw_stomach_pain = factor(data$flw_stomach_pain,levels=c("1","0","99"))
data$flw_nausea = factor(data$flw_nausea,levels=c("1","0","99"))
data$flw_sleeping = factor(data$flw_sleeping,levels=c("1","0","99"))
data$flw_constipation = factor(data$flw_constipation,levels=c("1","0","99"))
data$flw_diarrhoea = factor(data$flw_diarrhoea,levels=c("1","0","99"))
data$flw_lesions_toes = factor(data$flw_lesions_toes,levels=c("1","0","99"))
data$flw_urine = factor(data$flw_urine,levels=c("1","0","99"))
data$flw_skin_rash = factor(data$flw_skin_rash,levels=c("1","0","99"))
data$flw_one_side = factor(data$flw_one_side,levels=c("1","0","99"))
data$flw_dizziness = factor(data$flw_dizziness,levels=c("1","0","99"))
data$flw_swallow = factor(data$flw_swallow,levels=c("1","0","99"))
data$flw_seeing = factor(data$flw_seeing,levels=c("1","0","99"))
data$flw_other_symp = factor(data$flw_other_symp,levels=c("1","0","99"))
data$flw_fainting = factor(data$flw_fainting,levels=c("1","0","99"))
data$flw_ed = factor(data$flw_ed,levels=c("1","0","2"))
data$flw_cough_type = factor(data$flw_cough_type,levels=c("1","2"))
data$flw_rash_area___1 = factor(data$flw_rash_area___1,levels=c("0","1"))
data$flw_rash_area___2 = factor(data$flw_rash_area___2,levels=c("0","1"))
data$flw_rash_area___3 = factor(data$flw_rash_area___3,levels=c("0","1"))
data$flw_rash_area___4 = factor(data$flw_rash_area___4,levels=c("0","1"))
data$flw_rash_area___5 = factor(data$flw_rash_area___5,levels=c("0","1"))
data$flw_rash_area___6 = factor(data$flw_rash_area___6,levels=c("0","1"))
data$flw_rash_area___7 = factor(data$flw_rash_area___7,levels=c("0","1"))
data$flw_eq5d_mb_p = factor(data$flw_eq5d_mb_p,levels=c("1","2","3","4","5"))
data$flw_eq5d_sc_p = factor(data$flw_eq5d_sc_p,levels=c("1","2","3","4","5"))
data$flw_eq5d_ua_p = factor(data$flw_eq5d_ua_p,levels=c("1","2","3","4","5"))
data$flw_eq5d_pd_p = factor(data$flw_eq5d_pd_p,levels=c("1","2","3","4","5"))
data$flw_eq5d_ad_p = factor(data$flw_eq5d_ad_p,levels=c("1","2","3","4","5"))
data$flw_eq5d_mb = factor(data$flw_eq5d_mb,levels=c("1","2","3","4","5"))
data$flw_eq5d_sc = factor(data$flw_eq5d_sc,levels=c("1","2","3","4","5"))
data$flw_eq5d_ua = factor(data$flw_eq5d_ua,levels=c("1","2","3","4","5"))
data$flw_eq5d_pd = factor(data$flw_eq5d_pd,levels=c("1","2","3","4","5"))
data$flw_eq5d_ad = factor(data$flw_eq5d_ad,levels=c("1","2","3","4","5"))
data$flw_breathless_now___1 = factor(data$flw_breathless_now___1,levels=c("0","1"))
data$flw_breathless_now___2 = factor(data$flw_breathless_now___2,levels=c("0","1"))
data$flw_breathless_now___3 = factor(data$flw_breathless_now___3,levels=c("0","1"))
data$flw_breathless_now___4 = factor(data$flw_breathless_now___4,levels=c("0","1"))
data$flw_breathless_now___5 = factor(data$flw_breathless_now___5,levels=c("0","1"))
data$flw_breathless_pre_c19___1 = factor(data$flw_breathless_pre_c19___1,levels=c("0","1"))
data$flw_breathless_pre_c19___2 = factor(data$flw_breathless_pre_c19___2,levels=c("0","1"))
data$flw_breathless_pre_c19___3 = factor(data$flw_breathless_pre_c19___3,levels=c("0","1"))
data$flw_breathless_pre_c19___4 = factor(data$flw_breathless_pre_c19___4,levels=c("0","1"))
data$flw_breathless_pre_c19___5 = factor(data$flw_breathless_pre_c19___5,levels=c("0","1"))
data$flw_seeing_today = factor(data$flw_seeing_today,levels=c("1","2","3","4"))
data$flw_seeing_pre_c19 = factor(data$flw_seeing_pre_c19,levels=c("1","2","3","4"))
data$flw_hearing_today = factor(data$flw_hearing_today,levels=c("1","2","3","4"))
data$flw_hearing_pre_c19 = factor(data$flw_hearing_pre_c19,levels=c("1","2","3","4"))
data$flw_walking_today = factor(data$flw_walking_today,levels=c("1","2","3","4"))
data$flw_walking_pre_c19 = factor(data$flw_walking_pre_c19,levels=c("1","2","3","4"))
data$flw_remember_today = factor(data$flw_remember_today,levels=c("1","2","3","4"))
data$flw_remember_pre_c19 = factor(data$flw_remember_pre_c19,levels=c("1","2","3","4"))
data$flw_washing_today = factor(data$flw_washing_today,levels=c("1","2","3","4"))
data$flw_washing_pre_c19 = factor(data$flw_washing_pre_c19,levels=c("1","2","3","4"))
data$flw_comm_today = factor(data$flw_comm_today,levels=c("1","2","3","4"))
data$flw_comm_pre_c19 = factor(data$flw_comm_pre_c19,levels=c("1","2","3","4"))
data$flw_smoking = factor(data$flw_smoking,levels=c("1","2","3","4"))
data$flw_alcohol = factor(data$flw_alcohol,levels=c("1","2","3","4"))
data$flw_healthy_eating = factor(data$flw_healthy_eating,levels=c("1","2","3","4"))
data$flw_phys_activ = factor(data$flw_phys_activ,levels=c("1","2","3","4"))
data$flw_walking_cycling = factor(data$flw_walking_cycling,levels=c("1","2","3","4"))
data$flw_employ_pre_c19___1 = factor(data$flw_employ_pre_c19___1,levels=c("0","1"))
data$flw_employ_pre_c19___2 = factor(data$flw_employ_pre_c19___2,levels=c("0","1"))
data$flw_employ_pre_c19___3 = factor(data$flw_employ_pre_c19___3,levels=c("0","1"))
data$flw_employ_pre_c19___4 = factor(data$flw_employ_pre_c19___4,levels=c("0","1"))
data$flw_employ_pre_c19___5 = factor(data$flw_employ_pre_c19___5,levels=c("0","1"))
data$flw_employ_pre_c19___6 = factor(data$flw_employ_pre_c19___6,levels=c("0","1"))
data$flw_employ_pre_c19___7 = factor(data$flw_employ_pre_c19___7,levels=c("0","1"))
data$flw_employ_pre_c19___8 = factor(data$flw_employ_pre_c19___8,levels=c("0","1"))
data$flw_employ_pre_c19___9 = factor(data$flw_employ_pre_c19___9,levels=c("0","1"))
data$flw_employ_pre_c19___10 = factor(data$flw_employ_pre_c19___10,levels=c("0","1"))
data$flw_employ_chg = factor(data$flw_employ_chg,levels=c("1","2","3"))
data$flw_employ_today___1 = factor(data$flw_employ_today___1,levels=c("0","1"))
data$flw_employ_today___2 = factor(data$flw_employ_today___2,levels=c("0","1"))
data$flw_employ_today___3 = factor(data$flw_employ_today___3,levels=c("0","1"))
data$flw_employ_today___4 = factor(data$flw_employ_today___4,levels=c("0","1"))
data$flw_employ_today___5 = factor(data$flw_employ_today___5,levels=c("0","1"))
data$flw_employ_today___6 = factor(data$flw_employ_today___6,levels=c("0","1"))
data$flw_employ_today___7 = factor(data$flw_employ_today___7,levels=c("0","1"))
data$flw_employ_today___8 = factor(data$flw_employ_today___8,levels=c("0","1"))
data$flw_employ_today___9 = factor(data$flw_employ_today___9,levels=c("0","1"))
data$flw_employ_today___10 = factor(data$flw_employ_today___10,levels=c("0","1"))
data$flw_employ_chg_reason___1 = factor(data$flw_employ_chg_reason___1,levels=c("0","1"))
data$flw_employ_chg_reason___2 = factor(data$flw_employ_chg_reason___2,levels=c("0","1"))
data$flw_employ_chg_reason___3 = factor(data$flw_employ_chg_reason___3,levels=c("0","1"))
data$flw_employ_chg_reason___4 = factor(data$flw_employ_chg_reason___4,levels=c("0","1"))
data$flw_employ_chg_reason___5 = factor(data$flw_employ_chg_reason___5,levels=c("0","1"))
data$flw_employ_chg_reason___6 = factor(data$flw_employ_chg_reason___6,levels=c("0","1"))
data$flw_sex_at_birth = factor(data$flw_sex_at_birth,levels=c("1","2","3","4"))
data$flw_ethinicity___1 = factor(data$flw_ethinicity___1,levels=c("0","1"))
data$flw_ethinicity___2 = factor(data$flw_ethinicity___2,levels=c("0","1"))
data$flw_ethinicity___3 = factor(data$flw_ethinicity___3,levels=c("0","1"))
data$flw_ethinicity___4 = factor(data$flw_ethinicity___4,levels=c("0","1"))
data$flw_ethinicity___5 = factor(data$flw_ethinicity___5,levels=c("0","1"))
data$flw_ethinicity___6 = factor(data$flw_ethinicity___6,levels=c("0","1"))
data$flw_ethinicity___7 = factor(data$flw_ethinicity___7,levels=c("0","1"))
data$flw_ethinicity___8 = factor(data$flw_ethinicity___8,levels=c("0","1"))
data$flw_ethinicity___9 = factor(data$flw_ethinicity___9,levels=c("0","1"))
data$flw_height_unit = factor(data$flw_height_unit,levels=c("1","2","3","4"))
data$flw_height_na = factor(data$flw_height_na,levels=c("1"))
data$flw_weight_unit = factor(data$flw_weight_unit,levels=c("1","2","3"))
data$flw_weight_na = factor(data$flw_weight_na,levels=c("1"))
data$follow_up_self_assessment_survey_complete = factor(data$follow_up_self_assessment_survey_complete,levels=c("0","1","2"))
levels(data$redcap_event_name)=c("Day 1 Hospital Admission (Arm 1: TIER 0)","Day 3 (Arm 1: TIER 0)","Day 6 (Arm 1: TIER 0)","Day 9 (Arm 1: TIER 0)","Additional days (Arm 1: TIER 0)","Discharge/Death (Arm 1: TIER 0)","Day 1 Hospital&ICU Admission (Arm 2: TIER 1)","Day 3 (Arm 2: TIER 1)","Day 6 (Arm 2: TIER 1)","Day 9 (Arm 2: TIER 1)","Additional days (Arm 2: TIER 1)","Discharge/Death (Arm 2: TIER 1)","Initial follow up (Arm 2: TIER 1)","Day 1 (Arm 3: TIER 2)","Day 2 (Arm 3: TIER 2)","Day 3 (Arm 3: TIER 2)","Day 4 (Arm 3: TIER 2)","Day 5 (Arm 3: TIER 2)","Day 6 (Arm 3: TIER 2)","Day 7 (Arm 3: TIER 2)","Day 8 (Arm 3: TIER 2)","Day 9 (Arm 3: TIER 2)","Day 10 (Arm 3: TIER 2)","Day 11 (Arm 3: TIER 2)","Day 12 (Arm 3: TIER 2)","Day 13 (Arm 3: TIER 2)","Day 14 (Arm 3: TIER 2)","Additional days (Arm 3: TIER 2)","Discharge/Death (Arm 3: TIER 2)","Initial follow up (Arm 3: TIER 2)")
levels(data$redcap_repeat_instrument)=c("Pre-admission medication","Infectious Respiratory Disease Pathogen Testing","Daily Form")
levels(data$participant_identification_number_pin_complete)=c("Incomplete","Unverified","Complete")
levels(data$tiers_faorres___1)=c("Unchecked","Checked")
levels(data$tiers_faorres___2)=c("Unchecked","Checked")
levels(data$tiers_faorres___3)=c("Unchecked","Checked")
levels(data$tiers_consent_complete)=c("Incomplete","Unverified","Complete")
levels(data$covid19_new)=c("Data in new COVID-19 short CRF")
levels(data$version_9_7)=c("Yes")
levels(data$ni_site)=c("Yes")
levels(data$corona_ieorres)=c("Yes","No")
levels(data$coriona_ieorres2)=c("Yes","No")
levels(data$coriona_ieorres3)=c("Yes","No")
levels(data$fever)=c("Yes","No")
levels(data$cough)=c("Yes","No")
levels(data$dyspnoe)=c("Yes","No")
levels(data$ari)=c("Yes","No")
levels(data$inflammatory_mss)=c("Yes","No")
levels(data$symptoms_epi_travel)=c("YES","NO","Unknown")
levels(data$symptoms_epi_physical)=c("YES","NO","Unknown")
levels(data$symptoms_epi_healthfac)=c("YES","NO","Unknown")
levels(data$symptoms_epi_lab)=c("YES","NO","Unknown")
levels(data$symptoms_epi_pathogen)=c("YES","NO","Unknown")
levels(data$symptoms_epi_animal)=c("YES","NO","Unknown")
levels(data$inclusion_criteria_complete)=c("Incomplete","Unverified","Complete")
levels(data$sex)=c("Male","Female","Not specified")
levels(data$agedatyn)=c("Yes","No")
levels(data$age_estimateyearsu)=c("Months","Years")
levels(data$ethnic___1)=c("Unchecked","Checked")
levels(data$ethnic___2)=c("Unchecked","Checked")
levels(data$ethnic___3)=c("Unchecked","Checked")
levels(data$ethnic___4)=c("Unchecked","Checked")
levels(data$ethnic___5)=c("Unchecked","Checked")
levels(data$ethnic___6)=c("Unchecked","Checked")
levels(data$ethnic___7)=c("Unchecked","Checked")
levels(data$ethnic___8)=c("Unchecked","Checked")
levels(data$ethnic___9)=c("Unchecked","Checked")
levels(data$ethnic___10)=c("Unchecked","Checked")
levels(data$healthwork_erterm)=c("YES","NO","N/A")
levels(data$labwork_erterm)=c("YES","NO","N/A")
levels(data$pregyn_rptestcd)=c("YES","NO","Unknown","N/A")
levels(data$postpart_rptestcd)=c("Yes","No","N/K")
levels(data$pregout_rptestcd)=c("Live birth","Still birth")
levels(data$aplb_lbperf)=c("Yes","No","N/A")
levels(data$aplb_lborres)=c("Positive","Negative")
levels(data$aplb_lbmethod)=c("PCR","Other")
levels(data$apdm_age)=c("Yes","No")
levels(data$apvs_weightu)=c("kg","lbs")
levels(data$apvs_weightnk)=c("N/K")
levels(data$apsc_gestout)=c("Term birth ( >= 37wk GA)","Preterm birth (< 37wk GA)","N/A")
levels(data$apsc_brfedind)=c("Yes","No","N/A")
levels(data$apsc_brfedindy)=c("Currently breastfed","Breastfeeding discontinued","N/A")
levels(data$apsc_dvageind)=c("Yes","No","N/A")
levels(data$apsc_vcageind)=c("Yes","No","Unknown","N/A")
levels(data$covid19_vaccine)=c("Yes","No","N/K")
levels(data$vaccine_covid_trial)=c("Yes","No","N/K")
levels(data$influenza_2021_vaccine)=c("Yes","No","N/K")
levels(data$demographics_complete)=c("Incomplete","Unverified","Complete")
levels(data$asymptomatic)=c("Asymptomatic")
levels(data$readm_cov19)=c("Yes","No","N/K")
levels(data$prev_subjid_nk)=c("N/K")
levels(data$readminreasnk)=c("N/K")
levels(data$susp_reinf)=c("Yes","No","N/K")
levels(data$surgefacil)=c("Yes","No","N/K")
levels(data$hooccur)=c("Yes-other facility is a study site","Yes-other facility is not a study site","No","N/A")
levels(data$siteid_transfernk)=c("N/K")
levels(data$hostdat_transfernk)=c("N/K")
levels(data$subjidcat_transfer)=c("Same as above","Different","N/A")
levels(data$travel_erterm)=c("Yes","No","N/A")
levels(data$supper_trcntry)=c("Afghanistan","Albania","Algeria","Andorra","Angola","Antigua and Barbuda","Argentina","Armenia","Aruba","Australia","Austria","Azerbaijan","Bahamas (The)","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bhutan","Bolivia","Bosnia and Herzegovina","Botswana","Brazil","Brunei","Bulgaria","Burkina Faso","Burma","Burundi","Cambodia","Cameroon","Canada","Cabo Verde","Central African Republic","Chad","Chile","China","Colombia","Comoros","Congo (Republic of the)","Costa Rica","Cote dIvoire","Croatia","Cuba","Curacao","Cyprus","Czechia","Denmark","Djibouti","Dominica","Dominican Republic","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Ethiopia","Fiji","Finland","France","Gabon","Gambia (The)","Georgia","Germany","Ghana","Greece","Grenada","Guatemala","Guinea","Guinea-Bissau","Guyana","Haiti","Holy See","Honduras","Hong Kong","Hungary","Iceland","India","Indonesia","Iran","Iraq","Ireland","Israel","Italy","Jamaica","Japan","Jordan","Kazakhstan","Kenya","Kiribati","Korea (South)","Kosovo","Kuwait","Kyrgyzstan","Laos","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Macau","Macedonia","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Mauritania","Mauritius","Mexico","Micronesia","Moldova","Monaco","Mongolia","Montenegro","Morocco","Mozambique","Namibia","Nauru","Nepal","Netherlands","New Zealand","Nicaragua","Niger","Nigeria","North Korea","Norway","Oman","Pakistan","Palau","Palestinian Territories","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Poland","Portugal","Qatar","Romania","Russia","Rwanda","Saint Kitts and Nevis","Saint Lucia","Saint Vincent and the Grenadines","Samoa","San Marino","Sao Tome and Principe","Saudi Arabia","Senegal","Serbia","Seychelles","Sierra Leone","Singapore","Sint Maarten","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","South Korea","South Sudan","Spain","Sri Lanka","Sudan","Suriname","Swaziland","Sweden","Switzerland","Syria","Taiwan","Tajikistan","Tanzania","Thailand","Timor-Leste","Togo","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","United States","Uruguay","Uzbekistan","Vanuatu","Venezuela","Vietnam","Yemen","Zambia","Zimbabwe")
levels(data$travel_erterm_2)=c("Yes","No","N/A")
levels(data$supper_trcntry_2)=c("Afghanistan","Albania","Algeria","Andorra","Angola","Antigua and Barbuda","Argentina","Armenia","Aruba","Australia","Austria","Azerbaijan","Bahamas (The)","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bhutan","Bolivia","Bosnia and Herzegovina","Botswana","Brazil","Brunei","Bulgaria","Burkina Faso","Burma","Burundi","Cambodia","Cameroon","Canada","Cabo Verde","Central African Republic","Chad","Chile","China","Colombia","Comoros","Congo (Republic of the)","Costa Rica","Cote dIvoire","Croatia","Cuba","Curacao","Cyprus","Czechia","Denmark","Djibouti","Dominica","Dominican Republic","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Ethiopia","Fiji","Finland","France","Gabon","Gambia (The)","Georgia","Germany","Ghana","Greece","Grenada","Guatemala","Guinea","Guinea-Bissau","Guyana","Haiti","Holy See","Honduras","Hong Kong","Hungary","Iceland","India","Indonesia","Iran","Iraq","Ireland","Israel","Italy","Jamaica","Japan","Jordan","Kazakhstan","Kenya","Kiribati","Korea (South)","Kosovo","Kuwait","Kyrgyzstan","Laos","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Macau","Macedonia","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Mauritania","Mauritius","Mexico","Micronesia","Moldova","Monaco","Mongolia","Montenegro","Morocco","Mozambique","Namibia","Nauru","Nepal","Netherlands","New Zealand","Nicaragua","Niger","Nigeria","North Korea","Norway","Oman","Pakistan","Palau","Palestinian Territories","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Poland","Portugal","Qatar","Romania","Russia","Rwanda","Saint Kitts and Nevis","Saint Lucia","Saint Vincent and the Grenadines","Samoa","San Marino","Sao Tome and Principe","Saudi Arabia","Senegal","Serbia","Seychelles","Sierra Leone","Singapore","Sint Maarten","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","South Korea","South Sudan","Spain","Sri Lanka","Sudan","Suriname","Swaziland","Sweden","Switzerland","Syria","Taiwan","Tajikistan","Tanzania","Thailand","Timor-Leste","Togo","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","United States","Uruguay","Uzbekistan","Vanuatu","Venezuela","Vietnam","Yemen","Zambia","Zimbabwe")
levels(data$animal_eryn)=c("Yes","No","Unknown","N/A")
levels(data$animal_eryn_2)=c("Yes","No","Unknown","N/A")
levels(data$onset_and_admission_complete)=c("Incomplete","Unverified","Complete")
levels(data$temp_vsyn)=c("Yes","No")
levels(data$temp_vsorresu)=c("°C","°F")
levels(data$hr_vsyn)=c("Yes","No")
levels(data$rr_vsyn)=c("Yes","No")
levels(data$sysbp_vsyn)=c("Yes","No")
levels(data$diabp_vsyn)=c("Yes","No")
levels(data$dehydration_vsorres)=c("Yes","No","Unknown")
levels(data$stercap_vsyn)=c("Yes","No")
levels(data$stercap_vsorres)=c("Yes","No","Unknown")
levels(data$oxy_vsyn)=c("Yes","No")
levels(data$oxy_vsorresu)=c("Room air","Oxygen therapy","N/A")
levels(data$fever_ceoccur_v2)=c("YES","NO","Unknown")
levels(data$cough_ceoccur_v2)=c("YES","NO","Unknown")
levels(data$coughsput_ceoccur_v2)=c("YES","NO","Unknown")
levels(data$coughhb_ceoccur_v2)=c("YES","NO","Unknown")
levels(data$sorethroat_ceoccur_v2)=c("YES","NO","Unknown")
levels(data$runnynose_ceoccur_v2)=c("YES","NO","Unknown")
levels(data$earpain_ceoccur_v2)=c("YES","NO","Unknown")
levels(data$wheeze_ceoccur_v2)=c("YES","NO","Unknown")
levels(data$chestpain_ceoccur_v2)=c("YES","NO","Unknown")
levels(data$myalgia_ceoccur_v2)=c("YES","NO","Unknown")
levels(data$jointpain_ceoccur_v2)=c("YES","NO","Unknown")
levels(data$fatigue_ceoccur_v2)=c("YES","NO","Unknown")
levels(data$shortbreath_ceoccur_v2)=c("YES","NO","Unknown")
levels(data$ageusia_ceoccur_v2)=c("YES","NO","Unknown")
levels(data$lowerchest_ceoccur_v2)=c("YES","NO","Unknown")
levels(data$headache_ceoccur_v2)=c("YES","NO","Unknown")
levels(data$confusion_ceoccur_v2)=c("YES","NO","Unknown")
levels(data$seizures_cecoccur_v2)=c("YES","NO","Unknown")
levels(data$abdopain_ceoccur_v2)=c("YES","NO","Unknown")
levels(data$vomit_ceoccur_v2)=c("YES","NO","Unknown")
levels(data$diarrhoea_ceoccur_v2)=c("YES","NO","Unknown")
levels(data$conjunct_ceoccur_v2)=c("YES","NO","Unknown")
levels(data$rash_ceoccur_v2)=c("YES","NO","Unknown")
levels(data$skinulcers_ceoccur_v2)=c("YES","NO","Unknown")
levels(data$lymp_ceoccur_v2)=c("YES","NO","Unknown")
levels(data$bleed_ceoccur_v2)=c("YES","NO","Unknown")
levels(data$bleed_ceterm_v2)=c("YES","NO","Unknown")
levels(data$anosmia_ceoccur_v2)=c("YES","NO","Unknown")
levels(data$no_symptoms)=c("YES","NO","Unknown")
levels(data$admission_signs_and_symptoms_complete)=c("Incomplete","Unverified","Complete")
levels(data$chrincard)=c("YES","NO","Unknown")
levels(data$hypertension_mhyn)=c("YES","NO","Unknown")
levels(data$chronicpul_mhyn)=c("YES","NO","Unknown")
levels(data$asthma_mhyn)=c("YES","NO","Unknown")
levels(data$renal_mhyn)=c("YES","NO","Unknown")
levels(data$modliv)=c("YES","NO","Unknown")
levels(data$mildliver)=c("YES","NO","Unknown")
levels(data$chronicneu_mhyn)=c("YES","NO","Unknown")
levels(data$malignantneo_mhyn)=c("YES","NO","Unknown")
levels(data$chronichaemo_mhyn)=c("YES","NO","Unknown")
levels(data$aidshiv_mhyn)=c("YES","NO","Unknown")
levels(data$obesity_mhyn)=c("YES","NO","Unknown")
levels(data$diabetes_type_mhyn)=c("NO","1","2","N/K")
levels(data$diabetescom_mhyn)=c("YES","NO","Unknown")
levels(data$diabetes_mhyn)=c("YES","NO","Unknown")
levels(data$rheumatologic_mhyn)=c("YES","NO","Unknown")
levels(data$dementia_mhyn)=c("YES","NO","Unknown")
levels(data$malnutrition_mhyn)=c("YES","NO","Unknown")
levels(data$smoking_mhyn)=c("Yes","Never Smoked","Former Smoker","N/K")
levels(data$other_mhyn)=c("Yes","No","Unknown")
levels(data$vulnerable_transplant)=c("Yes","No","N/K")
levels(data$vulnerable_cancers)=c("Yes","No","N/K")
levels(data$vulnerable_copd)=c("Yes","No","N/K")
levels(data$vulnerable_scid)=c("Yes","No","N/K")
levels(data$vulnerable_immuno)=c("Yes","No","N/K")
levels(data$vulnerable_preg)=c("Yes","No","N/K")
levels(data$comorbidities_complete)=c("Incomplete","Unverified","Complete")
levels(data$immno_cmtrt)=c("Yes","No","N/A")
levels(data$infect_cmtrt)=c("Yes","No","N/A")
levels(data$chronic_ace_cmoccur)=c("Yes","No","N/K")
levels(data$chronic_arb_cmoccur)=c("Yes","No","N/K")
levels(data$chronic_nsaid_cmoccur)=c("Yes","No","N/K")
levels(data$clinical_frailty)=c("1","2","3","4","5","6","7","8","9","N/K")
levels(data$preadmission_treatment_complete)=c("Incomplete","Unverified","Complete")
levels(data$no_medication)=c("No medication currently or within the last 14 days")
levels(data$cmdose_unit)=c("microgram","milligram","gram","int. unit","other","Unknown")
levels(data$cmdosfrq)=c("q.d - once a day","b.i.d - twice a day","t.i.d - three times a day","q.i.d - four times a day","q.h.s - before bed","5X a day - five times a day","q.4h - every four hours","q.6h - every six hours","q.o.d - every other day","prn - as needed","Other frequency","Unknown")
levels(data$cmroute)=c("IV","oral","Inhaled","Unknown","Other")
levels(data$preadmission_medication_complete)=c("Incomplete","Unverified","Complete")
levels(data$reinf_pcr)=c("Yes","No","N/K")
levels(data$reinf_antigen)=c("Yes","No","N/K")
levels(data$reinf_serology)=c("Yes","No","N/K")
levels(data$reinf_asymptomatic)=c("Asymptomatic")
levels(data$fever_ceoccur_v3)=c("YES","NO","N/K")
levels(data$cough_ceoccur_v3)=c("YES","NO","N/K")
levels(data$coughsput_ceoccur_v3)=c("YES","NO","N/K")
levels(data$coughhb_ceoccur_v3)=c("YES","NO","N/K")
levels(data$sorethroat_ceoccur_v3)=c("YES","NO","N/K")
levels(data$runnynose_ceoccur_v3)=c("YES","NO","N/K")
levels(data$earpain_ceoccur_v3)=c("YES","NO","N/K")
levels(data$wheeze_ceoccur_v3)=c("YES","NO","N/K")
levels(data$chestpain_ceoccur_v3)=c("YES","NO","N/K")
levels(data$myalgia_ceoccur_v3)=c("YES","NO","N/K")
levels(data$jointpain_ceoccur_v3)=c("YES","NO","N/K")
levels(data$fatigue_ceoccur_v3)=c("YES","NO","N/K")
levels(data$shortbreath_ceoccur_v3)=c("YES","NO","N/K")
levels(data$ageusia_ceoccur_v3)=c("YES","NO","N/K")
levels(data$lowerchest_ceoccur_v3)=c("YES","NO","N/K")
levels(data$headache_ceoccur_v3)=c("YES","NO","N/K")
levels(data$confusion_ceoccur_v3)=c("YES","NO","N/K")
levels(data$seizures_cecoccur_v3)=c("YES","NO","N/K")
levels(data$abdopain_ceoccur_v3)=c("YES","NO","N/K")
levels(data$vomit_ceoccur_v3)=c("YES","NO","N/K")
levels(data$diarrhoea_ceoccur_v3)=c("YES","NO","N/K")
levels(data$conjunct_ceoccur_v3)=c("YES","NO","N/K")
levels(data$rash_ceoccur_v3)=c("YES","NO","N/K")
levels(data$skinulcers_ceoccur_v3)=c("YES","NO","N/K")
levels(data$lymp_ceoccur_v3)=c("YES","NO","N/K")
levels(data$bleed_ceoccur_v3)=c("YES","NO","N/K")
levels(data$anosmia_ceoccur_v3)=c("YES","NO","N/K")
levels(data$no_symptoms_v3)=c("YES","NO","N/K")
levels(data$reinf_pre_adm_hosp)=c("YES","NO","N/K")
levels(data$reinf_pre_oxygen)=c("YES","NO","N/K")
levels(data$reinf_pre_hdu_icu)=c("YES","NO","N/K")
levels(data$reinf_pre_inv_vent)=c("YES","NO","N/K")
levels(data$reinf_pre_ecmo)=c("YES","NO","N/K")
levels(data$reinf_pre_dexameth)=c("YES","NO","N/K")
levels(data$reinf_pre_steroid)=c("YES","NO","N/K")
levels(data$reinf_pre_tociliz)=c("YES","NO","N/K")
levels(data$reinf_pre_remdesivir)=c("YES","NO","N/K")
levels(data$reinf_pre_conv_plasma)=c("YES","NO","N/K")
levels(data$reinf_pre_lopin_riton)=c("YES","NO","N/K")
levels(data$reinf_pre_interferon)=c("YES","NO","N/K")
levels(data$reinf_pre_chloro_hchlo)=c("YES","NO","N/K")
levels(data$reinfection_form_complete)=c("Incomplete","Unverified","Complete")
levels(data$daily_hoterm)=c("Yes","No","N/A")
levels(data$daily_temp_vsorresu)=c("°C","°F")
levels(data$daily_temp_vsorresnk)=c("N/K")
levels(data$daily_fi02_lbyn)=c("Yes","No","N/K")
levels(data$daily_sa02_lbyn)=c("Yes","No","N/K")
levels(data$daily_pao2_lbyn)=c("Yes","No")
levels(data$daily_pao2_lborresu)=c("kPa","mmHg")
levels(data$daily_pao2_lbspec)=c("Arterial","Venous","Capillary","N/A")
levels(data$daily_pco2_lbyn)=c("Yes","No")
levels(data$daily_pco2_lborresu)=c("kPa","mmHg")
levels(data$daily_ph_lbyn)=c("Yes","No")
levels(data$daily_hco3_lbyn)=c("Yes","No")
levels(data$daily_hco3_lborresu)=c("mEq/L","mmol/L")
levels(data$daily_baseex_lbyn)=c("Yes","No")
levels(data$avpu_vsorres)=c("Alert","Verbal","Pain","Unresponsive","N/K")
levels(data$daily_gcs_lbyn)=c("Yes","No","N/K")
levels(data$systolic_vsyn)=c("Yes","No")
levels(data$diastolic_vsyn)=c("Yes","No")
levels(data$daily_meanart_lbyn)=c("Yes","No")
levels(data$daily_urine_lbyn)=c("Yes","Estimated","No")
levels(data$daily_noninvasive_prtrt)=c("YES","NO","N/A")
levels(data$daily_invasive_prtrt)=c("YES","NO","N/A")
levels(data$daily_nasaloxy_cmtrt)=c("YES","NO","N/A")
levels(data$daily_ecmo_prtrt)=c("YES","NO","N/A")
levels(data$daily_rrt_cmtrt)=c("YES","NO","N/A")
levels(data$daily_inotrope_cmyn)=c("YES","NO","N/A")
levels(data$daily_dopless5_cmtrt)=c("YES","NO","N/A")
levels(data$daily_dop5to15_cmtrt)=c("YES","NO","N/A")
levels(data$daily_dopgr15_cmtrt)=c("YES","NO","N/A")
levels(data$daily_neuro_cmtrt)=c("YES","NO","N/A")
levels(data$daily_nitritc_cmtrt)=c("YES","NO","N/A")
levels(data$daily_prone_cmtrt)=c("YES","NO","N/A")
levels(data$daily_trach_prperf)=c("YES","NO","N/A")
levels(data$daily_prperf)=c("YES","NO","N/A")
levels(data$remdesivir)=c("YES","NO","N/K")
levels(data$remdesivir_last_dose)=c("YES","NO","N/K")
levels(data$daily_lbperf)=c("Yes","No")
levels(data$daily_hb_lbyn)=c("Yes","No","N/K")
# changed c("") (REDCap bug around weird levels) to c("<", ">") here and on similar variables below
levels(data$daily_hbop_lborres)=c("<", ">")
levels(data$daily_hb_lborresu)=c("g/L","g/dL")
levels(data$daily_wbc_lbyn)=c("Yes","No","N/K")
levels(data$daily_wbcop_lborres)=c("<", ">")
levels(data$daily_wbc_lborresu)=c("x 10^9 / L","x 103/µL")
levels(data$daily_lymp_lbyn)=c("Yes","No","N/K")
levels(data$daily_lympop_lbyn)=c("<", ">")
levels(data$daily_lymp_lborresu)=c("cells/ μL","x 10^9 / L","x 10³/μL")
levels(data$daily_neutro_lbyn)=c("Yes","No","N/K")
levels(data$daily_neutroop_lbyn)=c("<", ">")
levels(data$daily_neutro_lborresu)=c("cells/ μL","x 10^9 / L","x 10³/μL")
levels(data$daily_haematocrit_lbyn)=c("Yes","No")
levels(data$daily_haematocrit_lborresu)=c("%","L/L")
levels(data$daily_plt_lbyn)=c("Yes","No","N/K")
levels(data$daily_pltop_lborres)=c("<", ">")
levels(data$daily_plt_lborresu)=c("x 10^9 / L","x 103/μL")
levels(data$daily_aptt_lbyn)=c("Yes","No","N/K")
levels(data$daily_apttop_lborres)=c("<", ">")
levels(data$daily_pt_inr_lbyn)=c("PT done","INR done","PT or INR not done","N/K")
levels(data$daily_ptop_lborres)=c("<", ">")
levels(data$daily_inrop_lborres)=c("<", ">")
levels(data$daily_esr_lbyn)=c("Yes","No","N/K")
levels(data$daily_esrop_lbyn)=c("<", ">")
levels(data$daily_ferr_lbyn)=c("Yes","No","N/K")
levels(data$daily_ferrop_lbyn)=c("<", ">")
levels(data$daily_ferr_lborresu)=c("μg/L","ng/mL")
levels(data$daily_alt_lbyn)=c("Yes","No","N/K")
levels(data$daily_altop_lbyn)=c("<", ">")
levels(data$daily_bil_lbyn)=c("Yes","No","N/K")
levels(data$daily_bilop_lborres)=c("<", ">")
levels(data$daily_bil_lborresu)=c("µmol/L","mg/dL")
levels(data$daily_ast_lbyn)=c("Yes","No","N/K")
levels(data$daily_astop_lborres)=c("<", ">")
levels(data$daily_glucose_lbyn)=c("Yes","No","N/K")
levels(data$daily_glucoseop_lborres)=c("<", ">")
levels(data$daily_glucose_lborresu)=c("mmol/L","mg/dL")
levels(data$daily_bun_lbyn)=c("Yes","No","N/K")
levels(data$daily_bunop_lborres)=c("<", ">")
levels(data$daily_bun_lborresu)=c("mmol/L","mg/dL")
levels(data$daily_lactate_lbyn)=c("Yes","No","N/K")
levels(data$daily_lactateop_lbyn)=c("<", ">")
levels(data$daily_lactate_lborresu)=c("mmol/L","mg/dL")
levels(data$daily_ldh_lbyn)=c("Yes","No","N/K")
levels(data$daily_ldhop_lborres)=c("<", ">")
levels(data$daily_cpk_lby)=c("Yes","No","N/K")
levels(data$daily_cpkop_lbyn_2)=c("<", ">")
levels(data$daily_creat_lbyn)=c("Yes","No","N/K")
levels(data$daily_creatop_lborres)=c("<", ">")
levels(data$daily_creat_lborresu)=c("μmol/L","mg/dL","umol/L")
levels(data$daily_sodium_lbyn)=c("Yes","No","N/K")
levels(data$daily_sodiumop_lborres)=c("<", ">")
levels(data$daily_sodium_lborresu)=c("mmol/L","mEq/L")
levels(data$daily_potassium_lbyn)=c("Yes","No","N/K")
levels(data$daily_potassiumop_lborres)=c("<", ">")
levels(data$daily_potassium_lborresu)=c("mmol/L","mEq/L")
levels(data$daily_procal_lbyn)=c("Yes","No","N/K")
levels(data$daily_procalop_lborres)=c("<", ">")
levels(data$daily_crp_lbyn)=c("Yes","No","N/K")
levels(data$daily_crpop_lborres)=c("<", ">")
levels(data$daily_crp_lborresu)=c("mg/L","mg/dL","ug/ml")
levels(data$daily_egfr_lbyn)=c("Yes","No","N/K")
levels(data$daily_egfrop_lborres)=c("<", ">")
levels(data$daily_egfr_equation___1)=c("Unchecked","Checked")
levels(data$daily_egfr_equation___2)=c("Unchecked","Checked")
levels(data$daily_egfr_equation___3)=c("Unchecked","Checked")
levels(data$daily_egfr_equation___4)=c("Unchecked","Checked")
levels(data$daily_hba1cop_lborres)=c("<", ">")
levels(data$daily_hba1c_lborresu)=c("%","mmol/mol")
levels(data$daily_hba1c_lborresnk)=c("N/K")
levels(data$xray_prperf)=c("YES","NO","N/A")
levels(data$infiltrates_faorres)=c("YES","NO","N/A")
levels(data$daily_samples)=c("Yes","No")
levels(data$daily_form_complete)=c("Incomplete","Unverified","Complete")
levels(data$mbperf)=c("YES","NO","N/A")
levels(data$cov19sars_mbyn_v2)=c("Tested and POSITIVE","Tested and NEGATIVE","NOT TESTED")
levels(data$influ_mbyn)=c("YES - Confirmed","YES - Probable","NO")
levels(data$influ_mbyn_v2)=c("Tested and POSITIVE","Tested and NEGATIVE","NOT TESTED")
levels(data$influ_mbcat)=c("A/H3N2","A/H1N1pdm09","A/H7N9","A/H5N1","A - not typed","Other A","B - not typed","Other")
levels(data$corna_mbcat)=c("YES - Confirmed","YES - Probable","NO")
levels(data$corna_mbcaty)=c("MERS-CoV","2019nCoV","COVID-19/SARS-CoV-2 2019","Other CoV")
levels(data$rsv_mbcat)=c("YES - Confirmed","YES - Probable","NO")
levels(data$rsv_mbcat_v2)=c("Tested and POSITIVE","Tested and NEGATIVE","NOT TESTED")
levels(data$adeno_mbcat)=c("YES - Confirmed","YES - Probable","NO")
levels(data$adeno_mbcat_v2)=c("Tested and POSITIVE","Tested and NEGATIVE","NOT TESTED")
levels(data$bact_mborres)=c("YES-Confirmed","NO")
levels(data$clinicalpneu_mborres)=c("YES","NO","Unknown")
levels(data$infectuk_mborres)=c("Yes","N/A")
levels(data$pcr_path_diag___0)=c("Unchecked","Checked")
levels(data$pcr_path_diag___1)=c("Unchecked","Checked")
levels(data$pcr_path_diag___2)=c("Unchecked","Checked")
levels(data$pcr_path_diag___3)=c("Unchecked","Checked")
levels(data$pcr_path_diag___4)=c("Unchecked","Checked")
levels(data$pcr_path_diag___5)=c("Unchecked","Checked")
levels(data$pcr_path_diag___6)=c("Unchecked","Checked")
levels(data$pcr_path_diag___10)=c("Unchecked","Checked")
levels(data$other_mbyn)=c("YES - Confirmed","YES - Probable","NO")
levels(data$infectious_respiratory_disease_pathogen_diagnosis_complete)=c("Incomplete","Unverified","Complete")
levels(data$daily_mbperf)=c("Yes","No")
levels(data$mbspec)=c("Nasal / NP swab","Throat swab","Combined nasal / NP + throat swab","Sputum","Bronchoalveolar Lavage (BAL)","ETA","CSF","SAM","Urine","Faeces / rectal swab","Blood serum","Blood EDTA","Blood RNA","Blood","Other")
levels(data$mbmethod)=c("PCR","Culture","Other")
levels(data$mborres)=c("Positive","Negative","N/A")
levels(data$mbspec_v2)=c("Nasal / and or throat swab","Blood culture","Sputum","Deep respiratory sample (BAL/ETA)","Urine","Cerebrospinal fluid (CSF)","Faeces (stool)")
levels(data$mborres_v2)=c("Obtained: positive","Obtained: negative","Not obtained")
levels(data$mbtestcd_nsth)=c("SARS-CoV-2 (COVID-19)","Influenza - A/H3N2","Influenza- A/H1N1pdm09","Influenza- A/H7N9","Influenza- type B","Influenza- type C","Influenza-untyped","Respiratory Syncytial virus (RSV)","Adenovirus","Bocavirus","Bordetella parapertussis","Bordetella pertussis","Chlamydophila pneumoniae","Coronavirus 229E","Coronavirus HKU1","Coronavirus OC43","Coronavirus NL63","CoronaVirus (Mers-CoV)","Human Metapneumovirus","Human Rhinovirus/Enterovirus","Metapneumovirus","Middle East Respiratory Syndrome","Mycoplasma pneumoniae (L. pneumophila or L. longbeachae)","Parainfluenza 1 Parainfluenza2","Parainfluenza3","Parainfluenza 4","Severe Acute Respiratory Syndrome","Other - specify")
levels(data$mbtestcd_bc)=c("Staphylococcus aureus","Staphylococcus species (NOT aureus or lugdunensis)","Escherichia coli","Klebsiella pneumoniae","Klebsiella aerogenes","Klebsiella oxytoca","Enterococcus faecium","Enterococcus faecalis","Candida species (NOT yeasts)","Pseudomonas aeruginosa","Streptococcus pneumoniae","Enterobacter cloacae","Proteus mirabilis","Streptococcus pyogenes (Group A Streptococcus)","Streptococcus agalactiae (Group B Streptococcus)","Streptococcus anginosus or constellatus or intermedius","Streptococcus bovis or gallolyticus","Streptococcus dysgalactiae","Streptococcus viridans or gordonii or mitis or oralis or parasanguinis or salivarius or sanguinis","Citrobacter koseri","Serratia marcescens","Acinetobacter baumannii","Morganella morganii","Stenotrophomonas maltophilia","Staphylococcus lugdunensis","Other (do not record microscopy/gram stain only results)")
levels(data$mbtestcd_sp)=c("Staphylococcus aureus","Escherichia coli","Pseudomonas aeruginosa","Klebsiella pneumoniae","Klebsiella aerogenes","Klebsiella oxytoca","Haemophilus influenzae","Moraxella catarrhalis","Serratia marcescens","Enterobacter cloacae","Citrobacter koseri","Stenotrophomonas maltophilia","Streptococcus pneumoniae","Proteus mirabilis","Acinetobacter baumannii","Morganella morganii","Aspergillus fumigatus","Aspergillus sp (NOT fumigatus)","Enterococcus faecium","Enterococcus faecalis","Candida species (NOT yeasts)","Streptococcus pyogenes (Group A Streptococcus)","Streptococcus agalactiae (Group B Streptococcus)","Streptococcus anginosus or constellatus or intermedius","Staphylococcus lugdunensis","Staphylococcus species (NOT aureus or lugdunensis)","Mycobacterium tuberculosis","Other Mycobacteria (NOT tuberculosis)","Other (do not record microscopy/gram stain only results)")
levels(data$mbtestcd_drs)=c("Staphylococcus aureus","Escherichia coli","Pseudomonas aeruginosa","Klebsiella pneumoniae","Klebsiella aerogenes","Klebsiella oxytoca","Haemophilus influenzae","Moraxella catarrhalis","Serratia marcescens","Enterobacter cloacae","Citrobacter koseri","Stenotrophomonas maltophilia","Streptococcus pneumoniae","Proteus mirabilis","Acinetobacter baumannii","Morganella morganii","Aspergillus fumigatus","Aspergillus sp (NOT fumigatus)","Enterococcus faecium","Enterococcus faecalis","Candida species (NOT yeasts)","Streptococcus pyogenes (Group A Streptococcus)","Streptococcus agalactiae (Group B Streptococcus)","Streptococcus anginosus or constellatus or intermedius","Staphylococcus lugdunensis","Staphylococcus species (NOT aureus or lugdunensis)","Mycobacterium tuberculosis","Other Mycobacteria (NOT tuberculosis)","Other (do not record microscopy/gram stain only results)")
levels(data$mbtestcd_ur)=c("Escherichia coli","Escherichia coli","Klebsiella pneumoniae","Klebsiella aerogenes","Klebsiella oxytoca","Pseudomonas aeruginosa","Serratia marcescens","Enterobacter cloacae","Enterococcus faecium","Enterococcus faecalis","Staphylococcus aureus","Staphylococcus saprophyticus","Staphylococcus species (NOT aureus or saprophyticus)","Candida species (NOT yeasts)","Other (do not record microscopy/gram stain only results)")
levels(data$mbtestcd_csf)=c("Neisseria meningitidis","Streptococcus pneumoniae","Listeria monocytogenes","Haemophilus influenzae","Herpes simplex virus","Enterovirus","Varicella zoster virus","Other")
levels(data$mbtestcd_fst)=c("Clostridium difficile (ONLY if toxin positive)","Strongyloides stercoralis","Salmonella species","Shigella species","Campylobacter species","Other")
levels(data$mbspec_v3)=c("Abdominopelvic","Vascular access tip","Catheter urine","Abscess aspirate","Other")
levels(data$infectious_respiratory_disease_pathogen_testing_complete)=c("Incomplete","Unverified","Complete")
levels(data$antiviral_cmyn)=c("Yes","No","N/A")
levels(data$antiviral_cmtrt___1)=c("Unchecked","Checked")
levels(data$antiviral_cmtrt___2)=c("Unchecked","Checked")
levels(data$antiviral_cmtrt___3)=c("Unchecked","Checked")