forked from kaz-yos/tableone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test-all.txt
3678 lines (3364 loc) · 226 KB
/
test-all.txt
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
✔ | OK [33mF[39m [35mW[39m [34mS[39m | Context
⠏ | 0 | CreateTableOne ⠏ | 0 | Unit tests for the CreateTableOne function ⠸ | 4 | Unit tests for the CreateTableOne function ⠹ | 13 | Unit tests for the CreateTableOne function
Overall Missing
n 418
time (mean (SD)) 1917.78 (1104.67) 0.0
status (%) 0.0
0 232 (55.5)
1 25 ( 6.0)
2 161 (38.5)
age (mean (SD)) 50.74 (10.45) 0.0
sex = f (%) 374 (89.5) 0.0
ascites = 1 (%) 24 ( 7.7) 25.4
hepato = 1 (%) 160 (51.3) 25.4
spiders = 1 (%) 90 (28.8) 25.4
edema (%) 0.0
0 354 (84.7)
0.5 44 (10.5)
1 20 ( 4.8)
bili (mean (SD)) 3.22 (4.41) 0.0
chol (mean (SD)) 369.51 (231.94) 32.1
albumin (mean (SD)) 3.50 (0.42) 0.0
copper (mean (SD)) 97.65 (85.61) 25.8
alk.phos (mean (SD)) 1982.66 (2140.39) 25.4
ast (mean (SD)) 122.56 (56.70) 25.4
trig (mean (SD)) 124.70 (65.15) 32.5
platelet (mean (SD)) 257.02 (98.33) 2.6
protime (mean (SD)) 10.73 (1.02) 0.5
stage (%) 1.4
1 21 ( 5.1)
2 92 (22.3)
3 155 (37.6)
4 144 (35.0)
Overall Missing
n 418
time (mean (SD)) 1917.78 (1104.67) 0.0
status (%) 0.0
0 232 (55.5)
1 25 ( 6.0)
2 161 (38.5)
age (mean (SD)) 50.74 (10.45) 0.0
sex = f (%) 374 (89.5) 0.0
ascites (%) 25.4
0 288 (68.9)
1 24 ( 5.7)
NA 106 (25.4)
hepato (%) 25.4
0 152 (36.4)
1 160 (38.3)
NA 106 (25.4)
spiders (%) 25.4
0 222 (53.1)
1 90 (21.5)
NA 106 (25.4)
edema (%) 0.0
0 354 (84.7)
0.5 44 (10.5)
1 20 ( 4.8)
bili (mean (SD)) 3.22 (4.41) 0.0
chol (mean (SD)) 369.51 (231.94) 32.1
albumin (mean (SD)) 3.50 (0.42) 0.0
copper (mean (SD)) 97.65 (85.61) 25.8
alk.phos (mean (SD)) 1982.66 (2140.39) 25.4
ast (mean (SD)) 122.56 (56.70) 25.4
trig (mean (SD)) 124.70 (65.15) 32.5
platelet (mean (SD)) 257.02 (98.33) 2.6
protime (mean (SD)) 10.73 (1.02) 0.5
stage (%) 1.4
1 21 ( 5.0)
2 92 (22.0)
3 155 (37.1)
4 144 (34.4)
NA 6 ( 1.4)
⠋ | 31 | Unit tests for the CreateTableOne function Stratified by trt
1 2 p test Missing
n 158 154
time (mean (SD)) 2015.62 (1094.12) 1996.86 (1155.93) 0.883 0.0
status (%) 0.894 0.0
0 83 (52.5) 85 (55.2)
1 10 ( 6.3) 9 ( 5.8)
2 65 (41.1) 60 (39.0)
age (mean (SD)) 51.42 (11.01) 48.58 (9.96) 0.018 0.0
sex = f (%) 137 (86.7) 139 (90.3) 0.421 0.0
ascites = 1 (%) 14 ( 8.9) 10 ( 6.5) 0.567 25.4
hepato = 1 (%) 73 (46.2) 87 (56.5) 0.088 25.4
spiders = 1 (%) 45 (28.5) 45 (29.2) 0.985 25.4
edema (%) 0.877 0.0
0 132 (83.5) 131 (85.1)
0.5 16 (10.1) 13 ( 8.4)
1 10 ( 6.3) 10 ( 6.5)
bili (mean (SD)) 2.87 (3.63) 3.65 (5.28) 0.131 0.0
chol (mean (SD)) 365.01 (209.54) 373.88 (252.48) 0.748 32.1
albumin (mean (SD)) 3.52 (0.44) 3.52 (0.40) 0.874 0.0
copper (mean (SD)) 97.64 (90.59) 97.65 (80.49) 0.999 25.8
alk.phos (mean (SD)) 2021.30 (2183.44) 1943.01 (2101.69) 0.747 25.4
ast (mean (SD)) 120.21 (54.52) 124.97 (58.93) 0.460 25.4
trig (mean (SD)) 124.14 (71.54) 125.25 (58.52) 0.886 32.5
platelet (mean (SD)) 258.75 (100.32) 265.20 (90.73) 0.555 2.6
protime (mean (SD)) 10.65 (0.85) 10.80 (1.14) 0.197 0.5
stage (%) 0.201 1.4
1 12 ( 7.6) 4 ( 2.6)
2 35 (22.2) 32 (20.8)
3 56 (35.4) 64 (41.6)
4 55 (34.8) 54 (35.1)
Stratified by trt:sex
1:m 2:m 1:f 2:f p test Missing
n 21 15 137 139
time (mean (SD)) 1793.48 (1244.70) 2156.33 (1428.56) 2049.67 (1070.20) 1979.65 (1127.52) 0.730 0.0
status (%) 0.033 0.0
0 4 (19.0) 7 (46.7) 79 ( 57.7) 78 ( 56.1)
1 3 (14.3) 0 ( 0.0) 7 ( 5.1) 9 ( 6.5)
2 14 (66.7) 8 (53.3) 51 ( 37.2) 52 ( 37.4)
age (mean (SD)) 55.57 (12.61) 57.09 (10.07) 50.78 (10.65) 47.66 (9.54) <0.001 0.0
sex = f (%) 0 ( 0.0) 0 ( 0.0) 137 (100.0) 139 (100.0) <0.001 0.0
ascites = 1 (%) 1 ( 4.8) 2 (13.3) 13 ( 9.5) 8 ( 5.8) 0.516 25.4
hepato = 1 (%) 12 (57.1) 9 (60.0) 61 ( 44.5) 78 ( 56.1) 0.208 25.4
spiders = 1 (%) 3 (14.3) 1 ( 6.7) 42 ( 30.7) 44 ( 31.7) 0.089 25.4
edema (%) 0.906 0.0
0 17 (81.0) 12 (80.0) 115 ( 83.9) 119 ( 85.6)
0.5 3 (14.3) 1 ( 6.7) 13 ( 9.5) 12 ( 8.6)
1 1 ( 4.8) 2 (13.3) 9 ( 6.6) 8 ( 5.8)
bili (mean (SD)) 2.98 (2.11) 2.72 (2.46) 2.86 (3.81) 3.75 (5.50) 0.394 0.0
chol (mean (SD)) 403.43 (204.95) 301.00 (111.32) 358.24 (210.46) 381.73 (262.26) 0.512 32.1
albumin (mean (SD)) 3.63 (0.43) 3.50 (0.49) 3.50 (0.44) 3.53 (0.39) 0.585 0.0
copper (mean (SD)) 174.90 (105.33) 125.40 (89.18) 85.71 (82.27) 94.64 (79.25) <0.001 25.8
alk.phos (mean (SD)) 2486.16 (2385.32) 1734.45 (2478.07) 1950.04 (2151.35) 1965.52 (2066.15) 0.706 25.4
ast (mean (SD)) 128.71 (48.74) 112.58 (44.38) 118.91 (55.40) 126.30 (60.27) 0.598 25.4
trig (mean (SD)) 145.81 (56.62) 114.86 (39.59) 120.28 (73.41) 126.38 (60.22) 0.370 32.5
platelet (mean (SD)) 232.65 (97.38) 240.13 (73.93) 262.59 (100.53) 267.95 (92.20) 0.362 2.6
protime (mean (SD)) 10.84 (0.94) 11.23 (0.97) 10.62 (0.84) 10.75 (1.15) 0.137 0.5
stage (%) 0.646 1.4
1 2 ( 9.5) 1 ( 6.7) 10 ( 7.3) 3 ( 2.2)
2 4 (19.0) 2 (13.3) 31 ( 22.6) 30 ( 21.6)
3 7 (33.3) 5 (33.3) 49 ( 35.8) 59 ( 42.4)
4 8 (38.1) 7 (46.7) 47 ( 34.3) 47 ( 33.8)
Stratified by trt
Overall 1 2 p test Missing
n 418 158 154
time (mean (SD)) 1917.78 (1104.67) 2015.62 (1094.12) 1996.86 (1155.93) 0.883 0.0
status (%) 0.894 0.0
0 232 (55.5) 83 (52.5) 85 (55.2)
1 25 ( 6.0) 10 ( 6.3) 9 ( 5.8)
2 161 (38.5) 65 (41.1) 60 (39.0)
age (mean (SD)) 50.74 (10.45) 51.42 (11.01) 48.58 (9.96) 0.018 0.0
sex = f (%) 374 (89.5) 137 (86.7) 139 (90.3) 0.421 0.0
ascites = 1 (%) 24 ( 7.7) 14 ( 8.9) 10 ( 6.5) 0.567 25.4
hepato = 1 (%) 160 (51.3) 73 (46.2) 87 (56.5) 0.088 25.4
spiders = 1 (%) 90 (28.8) 45 (28.5) 45 (29.2) 0.985 25.4
edema (%) 0.877 0.0
0 354 (84.7) 132 (83.5) 131 (85.1)
0.5 44 (10.5) 16 (10.1) 13 ( 8.4)
1 20 ( 4.8) 10 ( 6.3) 10 ( 6.5)
bili (mean (SD)) 3.22 (4.41) 2.87 (3.63) 3.65 (5.28) 0.131 0.0
chol (mean (SD)) 369.51 (231.94) 365.01 (209.54) 373.88 (252.48) 0.748 32.1
albumin (mean (SD)) 3.50 (0.42) 3.52 (0.44) 3.52 (0.40) 0.874 0.0
copper (mean (SD)) 97.65 (85.61) 97.64 (90.59) 97.65 (80.49) 0.999 25.8
alk.phos (mean (SD)) 1982.66 (2140.39) 2021.30 (2183.44) 1943.01 (2101.69) 0.747 25.4
ast (mean (SD)) 122.56 (56.70) 120.21 (54.52) 124.97 (58.93) 0.460 25.4
trig (mean (SD)) 124.70 (65.15) 124.14 (71.54) 125.25 (58.52) 0.886 32.5
platelet (mean (SD)) 257.02 (98.33) 258.75 (100.32) 265.20 (90.73) 0.555 2.6
protime (mean (SD)) 10.73 (1.02) 10.65 (0.85) 10.80 (1.14) 0.197 0.5
stage (%) 0.201 1.4
1 21 ( 5.1) 12 ( 7.6) 4 ( 2.6)
2 92 (22.3) 35 (22.2) 32 (20.8)
3 155 (37.6) 56 (35.4) 64 (41.6)
4 144 (35.0) 55 (34.8) 54 (35.1)
⠸ | 34 | Unit tests for the CreateTableOne function Stratified by trt:sex
Overall 1:m 2:m 1:f 2:f p
n 418 21 15 137 139
time (mean (SD)) 1917.78 (1104.67) 1793.48 (1244.70) 2156.33 (1428.56) 2049.67 (1070.20) 1979.65 (1127.52) 0.730
status (%) 0.033
0 232 (55.5) 4 (19.0) 7 (46.7) 79 ( 57.7) 78 ( 56.1)
1 25 ( 6.0) 3 (14.3) 0 ( 0.0) 7 ( 5.1) 9 ( 6.5)
2 161 (38.5) 14 (66.7) 8 (53.3) 51 ( 37.2) 52 ( 37.4)
age (mean (SD)) 50.74 (10.45) 55.57 (12.61) 57.09 (10.07) 50.78 (10.65) 47.66 (9.54) <0.001
sex = f (%) 374 (89.5) 0 ( 0.0) 0 ( 0.0) 137 (100.0) 139 (100.0) <0.001
ascites = 1 (%) 24 ( 7.7) 1 ( 4.8) 2 (13.3) 13 ( 9.5) 8 ( 5.8) 0.516
hepato = 1 (%) 160 (51.3) 12 (57.1) 9 (60.0) 61 ( 44.5) 78 ( 56.1) 0.208
spiders = 1 (%) 90 (28.8) 3 (14.3) 1 ( 6.7) 42 ( 30.7) 44 ( 31.7) 0.089
edema (%) 0.906
0 354 (84.7) 17 (81.0) 12 (80.0) 115 ( 83.9) 119 ( 85.6)
0.5 44 (10.5) 3 (14.3) 1 ( 6.7) 13 ( 9.5) 12 ( 8.6)
1 20 ( 4.8) 1 ( 4.8) 2 (13.3) 9 ( 6.6) 8 ( 5.8)
bili (mean (SD)) 3.22 (4.41) 2.98 (2.11) 2.72 (2.46) 2.86 (3.81) 3.75 (5.50) 0.394
chol (mean (SD)) 369.51 (231.94) 403.43 (204.95) 301.00 (111.32) 358.24 (210.46) 381.73 (262.26) 0.512
albumin (mean (SD)) 3.50 (0.42) 3.63 (0.43) 3.50 (0.49) 3.50 (0.44) 3.53 (0.39) 0.585
copper (mean (SD)) 97.65 (85.61) 174.90 (105.33) 125.40 (89.18) 85.71 (82.27) 94.64 (79.25) <0.001
alk.phos (mean (SD)) 1982.66 (2140.39) 2486.16 (2385.32) 1734.45 (2478.07) 1950.04 (2151.35) 1965.52 (2066.15) 0.706
ast (mean (SD)) 122.56 (56.70) 128.71 (48.74) 112.58 (44.38) 118.91 (55.40) 126.30 (60.27) 0.598
trig (mean (SD)) 124.70 (65.15) 145.81 (56.62) 114.86 (39.59) 120.28 (73.41) 126.38 (60.22) 0.370
platelet (mean (SD)) 257.02 (98.33) 232.65 (97.38) 240.13 (73.93) 262.59 (100.53) 267.95 (92.20) 0.362
protime (mean (SD)) 10.73 (1.02) 10.84 (0.94) 11.23 (0.97) 10.62 (0.84) 10.75 (1.15) 0.137
stage (%) 0.646
1 21 ( 5.1) 2 ( 9.5) 1 ( 6.7) 10 ( 7.3) 3 ( 2.2)
2 92 (22.3) 4 (19.0) 2 (13.3) 31 ( 22.6) 30 ( 21.6)
3 155 (37.6) 7 (33.3) 5 (33.3) 49 ( 35.8) 59 ( 42.4)
4 144 (35.0) 8 (38.1) 7 (46.7) 47 ( 34.3) 47 ( 33.8)
Stratified by trt:sex
test Missing
n
time (mean (SD)) 0.0
status (%) 0.0
0
1
2
age (mean (SD)) 0.0
sex = f (%) 0.0
ascites = 1 (%) 25.4
hepato = 1 (%) 25.4
spiders = 1 (%) 25.4
edema (%) 0.0
0
0.5
1
bili (mean (SD)) 0.0
chol (mean (SD)) 32.1
albumin (mean (SD)) 0.0
copper (mean (SD)) 25.8
alk.phos (mean (SD)) 25.4
ast (mean (SD)) 25.4
trig (mean (SD)) 32.5
platelet (mean (SD)) 2.6
protime (mean (SD)) 0.5
stage (%) 1.4
1
2
3
4
Stratified by trt
1 2 SMD Missing
n 158 154
time (mean (SD)) 2015.62 (1094.12) 1996.86 (1155.93) 0.017 0.0
status (%) 0.054 0.0
0 83 (52.5) 85 ( 55.2)
1 10 ( 6.3) 9 ( 5.8)
2 65 (41.1) 60 ( 39.0)
trt = 2 (%) 0 ( 0.0) 154 (100.0) NaN 25.4
age (mean (SD)) 51.42 (11.01) 48.58 (9.96) 0.270 0.0
sex = f (%) 137 (86.7) 139 ( 90.3) 0.111 0.0
ascites = 1 (%) 14 ( 8.9) 10 ( 6.5) 0.089 25.4
hepato = 1 (%) 73 (46.2) 87 ( 56.5) 0.207 25.4
spiders = 1 (%) 45 (28.5) 45 ( 29.2) 0.016 25.4
edema (%) 0.058 0.0
0 132 (83.5) 131 ( 85.1)
0.5 16 (10.1) 13 ( 8.4)
1 10 ( 6.3) 10 ( 6.5)
bili (median [IQR]) 1.40 [0.80, 3.20] 1.30 [0.72, 3.60] 0.171 0.0
chol (median [IQR]) 315.50 [247.75, 417.00] 303.50 [254.25, 377.00] 0.038 32.1
albumin (mean (SD)) 3.52 (0.44) 3.52 (0.40) 0.018 0.0
copper (median [IQR]) 73.00 [40.00, 121.00] 73.00 [43.00, 139.00] <0.001 25.8
alk.phos (median [IQR]) 1214.50 [840.75, 2028.00] 1283.00 [922.50, 1949.75] 0.037 25.4
ast (mean (SD)) 120.21 (54.52) 124.97 (58.93) 0.084 25.4
trig (median [IQR]) 106.00 [84.50, 146.00] 113.00 [84.50, 155.00] 0.017 32.5
platelet (mean (SD)) 258.75 (100.32) 265.20 (90.73) 0.067 2.6
protime (mean (SD)) 10.65 (0.85) 10.80 (1.14) 0.146 0.5
stage (%) 0.246 1.4
1 12 ( 7.6) 4 ( 2.6)
2 35 (22.2) 32 ( 20.8)
3 56 (35.4) 64 ( 41.6)
4 55 (34.8) 54 ( 35.1)
⠴ | 36 | Unit tests for the CreateTableOne function
Overall
n 418
time (mean (SD)) 1917.78 (1104.67)
status (%)
0 232 (55.5)
1 25 ( 6.0)
2 161 (38.5)
age (mean (SD)) 50.74 (10.45)
sex = f (%) 374 (89.5)
ascites = 1 (%) 24 ( 7.7)
hepato = 1 (%) 160 (51.3)
spiders = 1 (%) 90 (28.8)
edema (%)
0 354 (84.7)
0.5 44 (10.5)
1 20 ( 4.8)
bili (mean (SD)) 3.22 (4.41)
chol (mean (SD)) 369.51 (231.94)
albumin (mean (SD)) 3.50 (0.42)
copper (mean (SD)) 97.65 (85.61)
alk.phos (mean (SD)) 1982.66 (2140.39)
ast (mean (SD)) 122.56 (56.70)
trig (mean (SD)) 124.70 (65.15)
platelet (mean (SD)) 257.02 (98.33)
protime (mean (SD)) 10.73 (1.02)
stage (%)
1 21 ( 5.1)
2 92 (22.3)
3 155 (37.6)
4 144 (35.0)
Overall
n 418
time (mean (SD)) 1917.78 (1104.67)
status (%)
0 232 (55.5)
1 25 ( 6.0)
2 161 (38.5)
age (mean (SD)) 50.74 (10.45)
sex (%) 374 (89.5)
ascites (%) 24 ( 7.7)
hepato (%) 160 (51.3)
spiders (%) 90 (28.8)
edema (%)
0 354 (84.7)
0.5 44 (10.5)
1 20 ( 4.8)
bili (mean (SD)) 3.22 (4.41)
chol (mean (SD)) 369.51 (231.94)
albumin (mean (SD)) 3.50 (0.42)
copper (mean (SD)) 97.65 (85.61)
alk.phos (mean (SD)) 1982.66 (2140.39)
ast (mean (SD)) 122.56 (56.70)
trig (mean (SD)) 124.70 (65.15)
platelet (mean (SD)) 257.02 (98.33)
protime (mean (SD)) 10.73 (1.02)
stage (%)
1 21 ( 5.1)
2 92 (22.3)
3 155 (37.6)
4 144 (35.0)
Overall
n 418
time (mean (SD)) 1917.78 (1104.67)
status (%)
0 232 (55.5)
1 25 ( 6.0)
2 161 (38.5)
age (mean (SD)) 50.74 (10.45)
sex = f (%) 374 (89.5)
ascites = 1 (%) 24 ( 7.7)
hepato = 1 (%) 160 (51.3)
spiders = 1 (%) 90 (28.8)
edema (%)
0 354 (84.7)
0.5 44 (10.5)
1 20 ( 4.8)
bili (mean (SD)) 3.22 (4.41)
chol (mean (SD)) 369.51 (231.94)
albumin (mean (SD)) 3.50 (0.42)
copper (mean (SD)) 97.65 (85.61)
alk.phos (mean (SD)) 1982.66 (2140.39)
ast (mean (SD)) 122.56 (56.70)
trig (mean (SD)) 124.70 (65.15)
platelet (mean (SD)) 257.02 (98.33)
protime (mean (SD)) 10.73 (1.02)
stage (%)
1 21 ( 5.1)
2 92 (22.3)
3 155 (37.6)
4 144 (35.0)
Overall
n 418
time (mean (SD)) 1917.78 (1104.67)
status (%)
0 232 (55.5)
1 25 ( 6.0)
2 161 (38.5)
Age in Years (mean (SD)) 50.74 (10.45)
Female Sex = f (%) 374 (89.5)
ascites = 1 (%) 24 ( 7.7)
hepato = 1 (%) 160 (51.3)
spiders = 1 (%) 90 (28.8)
edema (%)
0 354 (84.7)
0.5 44 (10.5)
1 20 ( 4.8)
bili (mean (SD)) 3.22 (4.41)
chol (mean (SD)) 369.51 (231.94)
albumin (mean (SD)) 3.50 (0.42)
copper (mean (SD)) 97.65 (85.61)
alk.phos (mean (SD)) 1982.66 (2140.39)
ast (mean (SD)) 122.56 (56.70)
trig (mean (SD)) 124.70 (65.15)
platelet (mean (SD)) 257.02 (98.33)
protime (mean (SD)) 10.73 (1.02)
Stage of the Disease (%)
1 21 ( 5.1)
2 92 (22.3)
3 155 (37.6)
4 144 (35.0)
⠧ | 48 | Unit tests for the CreateTableOne function Stratified by trt
1 2 p test
n 158 154
time (mean (SD)) 2015.62 (1094.12) 1996.86 (1155.93) 0.883
status (%) 0.894
0 83 (52.5) 85 (55.2)
1 10 ( 6.3) 9 ( 5.8)
2 65 (41.1) 60 (39.0)
age (mean (SD)) 51.42 (11.01) 48.58 (9.96) 0.018
sex = f (%) 137 (86.7) 139 (90.3) 0.421
ascites = 1 (%) 14 ( 8.9) 10 ( 6.5) 0.567
hepato = 1 (%) 73 (46.2) 87 (56.5) 0.088
spiders = 1 (%) 45 (28.5) 45 (29.2) 0.985
edema (%) 0.877
0 132 (83.5) 131 (85.1)
0.5 16 (10.1) 13 ( 8.4)
1 10 ( 6.3) 10 ( 6.5)
bili (mean (SD)) 2.87 (3.63) 3.65 (5.28) 0.131
chol (mean (SD)) 365.01 (209.54) 373.88 (252.48) 0.748
albumin (mean (SD)) 3.52 (0.44) 3.52 (0.40) 0.874
copper (mean (SD)) 97.64 (90.59) 97.65 (80.49) 0.999
alk.phos (mean (SD)) 2021.30 (2183.44) 1943.01 (2101.69) 0.747
ast (mean (SD)) 120.21 (54.52) 124.97 (58.93) 0.460
trig (mean (SD)) 124.14 (71.54) 125.25 (58.52) 0.886
platelet (mean (SD)) 258.75 (100.32) 265.20 (90.73) 0.555
protime (mean (SD)) 10.65 (0.85) 10.80 (1.14) 0.197
stage (%) 0.201
1 12 ( 7.6) 4 ( 2.6)
2 35 (22.2) 32 (20.8)
3 56 (35.4) 64 (41.6)
4 55 (34.8) 54 (35.1)
Overall
n 418
time (mean (SD)) 1917.78 (1104.67)
status (%)
0 232 (55.5)
1 25 ( 6.0)
2 161 (38.5)
age (mean (SD)) 50.74 (10.45)
sex = f (%) 374 (89.5)
ascites = 1 (%) 24 ( 7.7)
hepato = 1 (%) 160 (51.3)
spiders = 1 (%) 90 (28.8)
edema (%)
0 354 (84.7)
0.5 44 (10.5)
1 20 ( 4.8)
bili (mean (SD)) 3.22 (4.41)
chol (mean (SD)) 369.51 (231.94)
albumin (mean (SD)) 3.50 (0.42)
copper (mean (SD)) 97.65 (85.61)
alk.phos (mean (SD)) 1982.66 (2140.39)
ast (mean (SD)) 122.56 (56.70)
trig (mean (SD)) 124.70 (65.15)
platelet (mean (SD)) 257.02 (98.33)
protime (mean (SD)) 10.73 (1.02)
stage (%)
1 21 ( 5.1)
2 92 (22.3)
3 155 (37.6)
4 144 (35.0)
Overall
n 418
time (mean (SD)) 1917.78 (1104.67)
status (%)
0 232 (55.5)
1 25 ( 6.0)
2 161 (38.5)
age (mean (SD)) 50.74 (10.45)
sex = f (%) 374 (89.5)
ascites (%)
0 288 (68.9)
1 24 ( 5.7)
NA 106 (25.4)
hepato (%)
0 152 (36.4)
1 160 (38.3)
NA 106 (25.4)
spiders (%)
0 222 (53.1)
1 90 (21.5)
NA 106 (25.4)
edema (%)
0 354 (84.7)
0.5 44 (10.5)
1 20 ( 4.8)
bili (mean (SD)) 3.22 (4.41)
chol (mean (SD)) 369.51 (231.94)
albumin (mean (SD)) 3.50 (0.42)
copper (mean (SD)) 97.65 (85.61)
alk.phos (mean (SD)) 1982.66 (2140.39)
ast (mean (SD)) 122.56 (56.70)
trig (mean (SD)) 124.70 (65.15)
platelet (mean (SD)) 257.02 (98.33)
protime (mean (SD)) 10.73 (1.02)
stage (%)
1 21 ( 5.0)
2 92 (22.0)
3 155 (37.1)
4 144 (34.4)
NA 6 ( 1.4)
Stratified by trt:sex
1:m 2:m 1:f 2:f p test
n 21 15 137 139
time (mean (SD)) 1793.48 (1244.70) 2156.33 (1428.56) 2049.67 (1070.20) 1979.65 (1127.52) 0.730
status (%) 0.033
0 4 (19.0) 7 (46.7) 79 ( 57.7) 78 ( 56.1)
1 3 (14.3) 0 ( 0.0) 7 ( 5.1) 9 ( 6.5)
2 14 (66.7) 8 (53.3) 51 ( 37.2) 52 ( 37.4)
age (mean (SD)) 55.57 (12.61) 57.09 (10.07) 50.78 (10.65) 47.66 (9.54) <0.001
sex = f (%) 0 ( 0.0) 0 ( 0.0) 137 (100.0) 139 (100.0) <0.001
ascites = 1 (%) 1 ( 4.8) 2 (13.3) 13 ( 9.5) 8 ( 5.8) 0.516
hepato = 1 (%) 12 (57.1) 9 (60.0) 61 ( 44.5) 78 ( 56.1) 0.208
spiders = 1 (%) 3 (14.3) 1 ( 6.7) 42 ( 30.7) 44 ( 31.7) 0.089
edema (%) 0.906
0 17 (81.0) 12 (80.0) 115 ( 83.9) 119 ( 85.6)
0.5 3 (14.3) 1 ( 6.7) 13 ( 9.5) 12 ( 8.6)
1 1 ( 4.8) 2 (13.3) 9 ( 6.6) 8 ( 5.8)
bili (mean (SD)) 2.98 (2.11) 2.72 (2.46) 2.86 (3.81) 3.75 (5.50) 0.394
chol (mean (SD)) 403.43 (204.95) 301.00 (111.32) 358.24 (210.46) 381.73 (262.26) 0.512
albumin (mean (SD)) 3.63 (0.43) 3.50 (0.49) 3.50 (0.44) 3.53 (0.39) 0.585
copper (mean (SD)) 174.90 (105.33) 125.40 (89.18) 85.71 (82.27) 94.64 (79.25) <0.001
alk.phos (mean (SD)) 2486.16 (2385.32) 1734.45 (2478.07) 1950.04 (2151.35) 1965.52 (2066.15) 0.706
ast (mean (SD)) 128.71 (48.74) 112.58 (44.38) 118.91 (55.40) 126.30 (60.27) 0.598
trig (mean (SD)) 145.81 (56.62) 114.86 (39.59) 120.28 (73.41) 126.38 (60.22) 0.370
platelet (mean (SD)) 232.65 (97.38) 240.13 (73.93) 262.59 (100.53) 267.95 (92.20) 0.362
protime (mean (SD)) 10.84 (0.94) 11.23 (0.97) 10.62 (0.84) 10.75 (1.15) 0.137
stage (%) 0.646
1 2 ( 9.5) 1 ( 6.7) 10 ( 7.3) 3 ( 2.2)
2 4 (19.0) 2 (13.3) 31 ( 22.6) 30 ( 21.6)
3 7 (33.3) 5 (33.3) 49 ( 35.8) 59 ( 42.4)
4 8 (38.1) 7 (46.7) 47 ( 34.3) 47 ( 33.8)
Stratified by trt
1 2 p test
n 158 154
time (mean (SD)) 2015.6203 (1094.1233) 1996.8636 (1155.9289) 0.88305
status (%) 0.89351
0 83 (52.532) 85 (55.195)
1 10 ( 6.329) 9 ( 5.844)
2 65 (41.139) 60 (38.961)
age (mean (SD)) 51.4191 (11.0072) 48.5825 (9.9578) 0.01767
sex = f (%) 137 (86.709) 139 (90.260) 0.42123
ascites = 1 (%) 14 ( 8.861) 10 ( 6.494) 0.56729
hepato = 1 (%) 73 (46.203) 87 (56.494) 0.08821
spiders = 1 (%) 45 (28.481) 45 (29.221) 0.98466
edema (%) 0.87682
0 132 (83.544) 131 (85.065)
0.5 16 (10.127) 13 ( 8.442)
1 10 ( 6.329) 10 ( 6.494)
bili (mean (SD)) 2.8734 (3.6289) 3.6487 (5.2819) 0.13094
chol (mean (SD)) 365.0143 (209.5439) 373.8819 (252.4846) 0.74799
albumin (mean (SD)) 3.5163 (0.4433) 3.5238 (0.3958) 0.87388
copper (mean (SD)) 97.6433 (90.5901) 97.6536 (80.4865) 0.99916
alk.phos (mean (SD)) 2021.2975 (2183.4358) 1943.0104 (2101.6873) 0.74726
ast (mean (SD)) 120.2087 (54.5214) 124.9650 (58.9313) 0.45970
trig (mean (SD)) 124.1367 (71.5391) 125.2517 (58.5211) 0.88604
platelet (mean (SD)) 258.7500 (100.3247) 265.2039 (90.7294) 0.55451
protime (mean (SD)) 10.6532 (0.8514) 10.8000 (1.1382) 0.19714
stage (%) 0.20130
1 12 ( 7.595) 4 ( 2.597)
2 35 (22.152) 32 (20.779)
3 56 (35.443) 64 (41.558)
4 55 (34.810) 54 (35.065)
⠸ | 54 | Unit tests for the CreateTableOne function Stratified by trt
1 2
n 158 154
time (mean (SD)) 2015.62 (1094.12) 1996.86 (1155.93)
status (%)
0 83 (52.5) 85 (55.2)
1 10 ( 6.3) 9 ( 5.8)
2 65 (41.1) 60 (39.0)
age (mean (SD)) 51.42 (11.01) 48.58 (9.96)
sex = f (%) 137 (86.7) 139 (90.3)
ascites = 1 (%) 14 ( 8.9) 10 ( 6.5)
hepato = 1 (%) 73 (46.2) 87 (56.5)
spiders = 1 (%) 45 (28.5) 45 (29.2)
edema (%)
0 132 (83.5) 131 (85.1)
0.5 16 (10.1) 13 ( 8.4)
1 10 ( 6.3) 10 ( 6.5)
bili (mean (SD)) 2.87 (3.63) 3.65 (5.28)
chol (mean (SD)) 365.01 (209.54) 373.88 (252.48)
albumin (mean (SD)) 3.52 (0.44) 3.52 (0.40)
copper (mean (SD)) 97.64 (90.59) 97.65 (80.49)
alk.phos (mean (SD)) 2021.30 (2183.44) 1943.01 (2101.69)
ast (mean (SD)) 120.21 (54.52) 124.97 (58.93)
trig (mean (SD)) 124.14 (71.54) 125.25 (58.52)
platelet (mean (SD)) 258.75 (100.32) 265.20 (90.73)
protime (mean (SD)) 10.65 (0.85) 10.80 (1.14)
stage (%)
1 12 ( 7.6) 4 ( 2.6)
2 35 (22.2) 32 (20.8)
3 56 (35.4) 64 (41.6)
4 55 (34.8) 54 (35.1)
Stratified by trt
1 2 p test
n 158 154
time (mean (SD)) 2015.62 (1094.12) 1996.86 (1155.93) 0.883
status (%) 0.884 exact
0 83 (52.5) 85 (55.2)
1 10 ( 6.3) 9 ( 5.8)
2 65 (41.1) 60 (39.0)
age (mean (SD)) 51.42 (11.01) 48.58 (9.96) 0.018
sex = f (%) 137 (86.7) 139 (90.3) 0.421
ascites = 1 (%) 14 ( 8.9) 10 ( 6.5) 0.567
hepato = 1 (%) 73 (46.2) 87 (56.5) 0.088
spiders = 1 (%) 45 (28.5) 45 (29.2) 0.985
edema (%) 0.877
0 132 (83.5) 131 (85.1)
0.5 16 (10.1) 13 ( 8.4)
1 10 ( 6.3) 10 ( 6.5)
bili (median [IQR]) 1.40 [0.80, 3.20] 1.30 [0.72, 3.60] 0.842 nonnorm
chol (median [IQR]) 315.50 [247.75, 417.00] 303.50 [254.25, 377.00] 0.544 nonnorm
albumin (mean (SD)) 3.52 (0.44) 3.52 (0.40) 0.874
copper (median [IQR]) 73.00 [40.00, 121.00] 73.00 [43.00, 139.00] 0.717 nonnorm
alk.phos (median [IQR]) 1214.50 [840.75, 2028.00] 1283.00 [922.50, 1949.75] 0.812 nonnorm
ast (mean (SD)) 120.21 (54.52) 124.97 (58.93) 0.460
trig (median [IQR]) 106.00 [84.50, 146.00] 113.00 [84.50, 155.00] 0.370 nonnorm
platelet (mean (SD)) 258.75 (100.32) 265.20 (90.73) 0.555
protime (mean (SD)) 10.65 (0.85) 10.80 (1.14) 0.197
stage (%) 0.205 exact
1 12 ( 7.6) 4 ( 2.6)
2 35 (22.2) 32 (20.8)
3 56 (35.4) 64 (41.6)
4 55 (34.8) 54 (35.1)
Stratified by trt
1 2 p test
n 158 154
time (mean (SD)) 2015.62 (1094.12) 1996.86 (1155.93) 0.883
status (%) 0.894
0 83 (52.5) 85 (55.2)
1 10 ( 6.3) 9 ( 5.8)
2 65 (41.1) 60 (39.0)
age (mean (SD)) 51.42 (11.01) 48.58 (9.96) 0.018
sex = f (%) 137 (86.7) 139 (90.3) 0.421
ascites = 1 (%) 14 ( 8.9) 10 ( 6.5) 0.567
hepato = 1 (%) 73 (46.2) 87 (56.5) 0.088
spiders = 1 (%) 45 (28.5) 45 (29.2) 0.985
edema (%) 0.877
0 132 (83.5) 131 (85.1)
0.5 16 (10.1) 13 ( 8.4)
1 10 ( 6.3) 10 ( 6.5)
bili (median [range]) 1.40 [0.30, 20.00] 1.30 [0.30, 28.00] 0.842 nonnorm
chol (median [range]) 315.50 [127.00, 1712.00] 303.50 [120.00, 1775.00] 0.544 nonnorm
albumin (mean (SD)) 3.52 (0.44) 3.52 (0.40) 0.874
copper (median [range]) 73.00 [9.00, 588.00] 73.00 [4.00, 558.00] 0.717 nonnorm
alk.phos (median [range]) 1214.50 [369.00, 11552.00] 1283.00 [289.00, 13862.40] 0.812 nonnorm
ast (mean (SD)) 120.21 (54.52) 124.97 (58.93) 0.460
trig (median [range]) 106.00 [33.00, 598.00] 113.00 [44.00, 432.00] 0.370 nonnorm
platelet (mean (SD)) 258.75 (100.32) 265.20 (90.73) 0.555
protime (mean (SD)) 10.65 (0.85) 10.80 (1.14) 0.197
stage (%) 0.201
1 12 ( 7.6) 4 ( 2.6)
2 35 (22.2) 32 (20.8)
3 56 (35.4) 64 (41.6)
4 55 (34.8) 54 (35.1)
Stratified by trt
1 2 p test
n 158 154
time (mean (SD)) 2015.62 (1094.12) 1996.86 (1155.93) 0.883
status (%) 0.884 exact
0 83 (52.5) 85 (55.2)
1 10 (6.3) 9 (5.8)
2 65 (41.1) 60 (39.0)
age (mean (SD)) 51.42 (11.01) 48.58 (9.96) 0.018
sex = f (%) 137 (86.7) 139 (90.3) 0.421
ascites = 1 (%) 14 (8.9) 10 (6.5) 0.567
hepato = 1 (%) 73 (46.2) 87 (56.5) 0.088
spiders = 1 (%) 45 (28.5) 45 (29.2) 0.985
edema (%) 0.877
0 132 (83.5) 131 (85.1)
0.5 16 (10.1) 13 (8.4)
1 10 (6.3) 10 (6.5)
bili (median [IQR]) 1.40 [0.80, 3.20] 1.30 [0.72, 3.60] 0.842 nonnorm
chol (median [IQR]) 315.50 [247.75, 417.00] 303.50 [254.25, 377.00] 0.544 nonnorm
albumin (mean (SD)) 3.52 (0.44) 3.52 (0.40) 0.874
copper (median [IQR]) 73.00 [40.00, 121.00] 73.00 [43.00, 139.00] 0.717 nonnorm
alk.phos (median [IQR]) 1214.50 [840.75, 2028.00] 1283.00 [922.50, 1949.75] 0.812 nonnorm
ast (mean (SD)) 120.21 (54.52) 124.97 (58.93) 0.460
trig (median [IQR]) 106.00 [84.50, 146.00] 113.00 [84.50, 155.00] 0.370 nonnorm
platelet (mean (SD)) 258.75 (100.32) 265.20 (90.73) 0.555
protime (mean (SD)) 10.65 (0.85) 10.80 (1.14) 0.197
stage (%) 0.205 exact
1 12 (7.6) 4 (2.6)
2 35 (22.2) 32 (20.8)
3 56 (35.4) 64 (41.6)
4 55 (34.8) 54 (35.1)
Stratified by trt
level 1 2 p test
n 158 154
time (mean (SD)) 2015.62 (1094.12) 1996.86 (1155.93) 0.883
status (%) 0 83 (52.5) 85 (55.2) 0.884 exact
1 10 ( 6.3) 9 ( 5.8)
2 65 (41.1) 60 (39.0)
age (mean (SD)) 51.42 (11.01) 48.58 (9.96) 0.018
sex (%) m 21 (13.3) 15 ( 9.7) 0.421
f 137 (86.7) 139 (90.3)
ascites (%) 0 144 (91.1) 144 (93.5) 0.567
1 14 ( 8.9) 10 ( 6.5)
hepato (%) 0 85 (53.8) 67 (43.5) 0.088
1 73 (46.2) 87 (56.5)
spiders (%) 0 113 (71.5) 109 (70.8) 0.985
1 45 (28.5) 45 (29.2)
edema (%) 0 132 (83.5) 131 (85.1) 0.877
0.5 16 (10.1) 13 ( 8.4)
1 10 ( 6.3) 10 ( 6.5)
bili (median [IQR]) 1.40 [0.80, 3.20] 1.30 [0.72, 3.60] 0.842 nonnorm
chol (median [IQR]) 315.50 [247.75, 417.00] 303.50 [254.25, 377.00] 0.544 nonnorm
albumin (mean (SD)) 3.52 (0.44) 3.52 (0.40) 0.874
copper (median [IQR]) 73.00 [40.00, 121.00] 73.00 [43.00, 139.00] 0.717 nonnorm
alk.phos (median [IQR]) 1214.50 [840.75, 2028.00] 1283.00 [922.50, 1949.75] 0.812 nonnorm
ast (mean (SD)) 120.21 (54.52) 124.97 (58.93) 0.460
trig (median [IQR]) 106.00 [84.50, 146.00] 113.00 [84.50, 155.00] 0.370 nonnorm
platelet (mean (SD)) 258.75 (100.32) 265.20 (90.73) 0.555
protime (mean (SD)) 10.65 (0.85) 10.80 (1.14) 0.197
stage (%) 1 12 ( 7.6) 4 ( 2.6) 0.205 exact
2 35 (22.2) 32 (20.8)
3 56 (35.4) 64 (41.6)
4 55 (34.8) 54 (35.1)
⠇ | 59 | Unit tests for the CreateTableOne function "Stratified by trt"
"" "1" "2" "p" "test"
"n" "158" "154" "" ""
"time (mean (SD))" "2015.62 (1094.12)" "1996.86 (1155.93)" "0.883" ""
"status (%)" "" "" "0.884" "exact"
" 0" "83 (52.5)" "85 (55.2)" "" ""
" 1" "10 (6.3)" "9 (5.8)" "" ""
" 2" "65 (41.1)" "60 (39.0)" "" ""
"age (mean (SD))" "51.42 (11.01)" "48.58 (9.96)" "0.018" ""
"sex = f (%)" "137 (86.7)" "139 (90.3)" "0.421" ""
"ascites = 1 (%)" "14 (8.9)" "10 (6.5)" "0.567" ""
"hepato = 1 (%)" "73 (46.2)" "87 (56.5)" "0.088" ""
"spiders = 1 (%)" "45 (28.5)" "45 (29.2)" "0.985" ""
"edema (%)" "" "" "0.877" ""
" 0" "132 (83.5)" "131 (85.1)" "" ""
" 0.5" "16 (10.1)" "13 (8.4)" "" ""
" 1" "10 (6.3)" "10 (6.5)" "" ""
"bili (median [IQR])" "1.40 [0.80, 3.20]" "1.30 [0.72, 3.60]" "0.842" "nonnorm"
"chol (median [IQR])" "315.50 [247.75, 417.00]" "303.50 [254.25, 377.00]" "0.544" "nonnorm"
"albumin (mean (SD))" "3.52 (0.44)" "3.52 (0.40)" "0.874" ""
"copper (median [IQR])" "73.00 [40.00, 121.00]" "73.00 [43.00, 139.00]" "0.717" "nonnorm"
"alk.phos (median [IQR])" "1214.50 [840.75, 2028.00]" "1283.00 [922.50, 1949.75]" "0.812" "nonnorm"
"ast (mean (SD))" "120.21 (54.52)" "124.97 (58.93)" "0.460" ""
"trig (median [IQR])" "106.00 [84.50, 146.00]" "113.00 [84.50, 155.00]" "0.370" "nonnorm"
"platelet (mean (SD))" "258.75 (100.32)" "265.20 (90.73)" "0.555" ""
"protime (mean (SD))" "10.65 (0.85)" "10.80 (1.14)" "0.197" ""
"stage (%)" "" "" "0.205" "exact"
" 1" "12 (7.6)" "4 (2.6)" "" ""
" 2" "35 (22.2)" "32 (20.8)" "" ""
" 3" "56 (35.4)" "64 (41.6)" "" ""
" 4" "55 (34.8)" "54 (35.1)" "" ""
Stratified by trt:sex
1:m 2:m 1:f 2:f p test
n 21 15 137 139
time (mean (SD)) 1793.48 (1244.70) 2156.33 (1428.56) 2049.67 (1070.20) 1979.65 (1127.52) 0.730
age (mean (SD)) 55.57 (12.61) 57.09 (10.07) 50.78 (10.65) 47.66 (9.54) <0.001
protime (mean (SD)) 10.84 (0.94) 11.23 (0.97) 10.62 (0.84) 10.75 (1.15) 0.137
Stratified by trt:sex
1:m 2:m 1:f 2:f p test
n 21 15 137 139
status (%) 0.033
0 4 (19.0) 7 ( 46.7) 79 ( 57.7) 78 ( 56.1)
1 3 (14.3) 0 ( 0.0) 7 ( 5.1) 9 ( 6.5)
2 14 (66.7) 8 ( 53.3) 51 ( 37.2) 52 ( 37.4)
trt = 2 (%) 0 ( 0.0) 15 (100.0) 0 ( 0.0) 139 (100.0) <0.001
sex = f (%) 0 ( 0.0) 0 ( 0.0) 137 (100.0) 139 (100.0) <0.001
"Stratified by trt"
"" "Overall" "1" "2" "p"
"n" "418" "158" "154" ""
"time (mean (SD))" "1917.78 (1104.67)" "2015.62 (1094.12)" "1996.86 (1155.93)" "0.883"
"status (%)" "" "" "" "0.884"
" 0" "232 (55.5)" "83 (52.5)" "85 (55.2)" ""
" 1" "25 (6.0)" "10 (6.3)" "9 (5.8)" ""
" 2" "161 (38.5)" "65 (41.1)" "60 (39.0)" ""
"age (mean (SD))" "50.74 (10.45)" "51.42 (11.01)" "48.58 (9.96)" "0.018"
"sex = f (%)" "374 (89.5)" "137 (86.7)" "139 (90.3)" "0.421"
"ascites = 1 (%)" "24 (7.7)" "14 (8.9)" "10 (6.5)" "0.567"
"hepato = 1 (%)" "160 (51.3)" "73 (46.2)" "87 (56.5)" "0.088"
"spiders = 1 (%)" "90 (28.8)" "45 (28.5)" "45 (29.2)" "0.985"
"edema (%)" "" "" "" "0.877"
" 0" "354 (84.7)" "132 (83.5)" "131 (85.1)" ""
" 0.5" "44 (10.5)" "16 (10.1)" "13 (8.4)" ""
" 1" "20 (4.8)" "10 (6.3)" "10 (6.5)" ""
"bili (median [IQR])" "1.40 [0.80, 3.40]" "1.40 [0.80, 3.20]" "1.30 [0.72, 3.60]" "0.842"
"chol (median [IQR])" "309.50 [249.50, 400.00]" "315.50 [247.75, 417.00]" "303.50 [254.25, 377.00]" "0.544"
"albumin (mean (SD))" "3.50 (0.42)" "3.52 (0.44)" "3.52 (0.40)" "0.874"
"copper (median [IQR])" "73.00 [41.25, 123.00]" "73.00 [40.00, 121.00]" "73.00 [43.00, 139.00]" "0.717"
"alk.phos (median [IQR])" "1259.00 [871.50, 1980.00]" "1214.50 [840.75, 2028.00]" "1283.00 [922.50, 1949.75]" "0.812"
"ast (mean (SD))" "122.56 (56.70)" "120.21 (54.52)" "124.97 (58.93)" "0.460"
"trig (median [IQR])" "108.00 [84.25, 151.00]" "106.00 [84.50, 146.00]" "113.00 [84.50, 155.00]" "0.370"
"platelet (mean (SD))" "257.02 (98.33)" "258.75 (100.32)" "265.20 (90.73)" "0.555"
"protime (mean (SD))" "10.73 (1.02)" "10.65 (0.85)" "10.80 (1.14)" "0.197"
"stage (%)" "" "" "" "0.205"
" 1" "21 (5.1)" "12 (7.6)" "4 (2.6)" ""
" 2" "92 (22.3)" "35 (22.2)" "32 (20.8)" ""
" 3" "155 (37.6)" "56 (35.4)" "64 (41.6)" ""
" 4" "144 (35.0)" "55 (34.8)" "54 (35.1)" ""
"Stratified by trt"
"" "test" "SMD"
"n" "" ""
"time (mean (SD))" "" "0.017"
"status (%)" "exact" "0.054"
" 0" "" ""
" 1" "" ""
" 2" "" ""
"age (mean (SD))" "" "0.270"
"sex = f (%)" "" "0.111"
"ascites = 1 (%)" "" "0.089"
"hepato = 1 (%)" "" "0.207"
"spiders = 1 (%)" "" "0.016"
"edema (%)" "" "0.058"
" 0" "" ""
" 0.5" "" ""
" 1" "" ""
"bili (median [IQR])" "nonnorm" "0.171"
"chol (median [IQR])" "nonnorm" "0.038"
"albumin (mean (SD))" "" "0.018"
"copper (median [IQR])" "nonnorm" "<0.001"
"alk.phos (median [IQR])" "nonnorm" "0.037"
"ast (mean (SD))" "" "0.084"
"trig (median [IQR])" "nonnorm" "0.017"
"platelet (mean (SD))" "" "0.067"
"protime (mean (SD))" "" "0.146"
"stage (%)" "exact" "0.246"
" 1" "" ""
" 2" "" ""
" 3" "" ""
" 4" "" ""
Stratified by trt:sex
Overall 1:m 2:m 1:f 2:f p
n 418 21 15 137 139
time (mean (SD)) 1917.78 (1104.67) 1793.48 (1244.70) 2156.33 (1428.56) 2049.67 (1070.20) 1979.65 (1127.52) 0.730
status (%) 0.033
0 232 (55.5) 4 (19.0) 7 (46.7) 79 ( 57.7) 78 ( 56.1)
1 25 ( 6.0) 3 (14.3) 0 ( 0.0) 7 ( 5.1) 9 ( 6.5)
2 161 (38.5) 14 (66.7) 8 (53.3) 51 ( 37.2) 52 ( 37.4)
age (mean (SD)) 50.74 (10.45) 55.57 (12.61) 57.09 (10.07) 50.78 (10.65) 47.66 (9.54) <0.001
sex = f (%) 374 (89.5) 0 ( 0.0) 0 ( 0.0) 137 (100.0) 139 (100.0) <0.001
ascites = 1 (%) 24 ( 7.7) 1 ( 4.8) 2 (13.3) 13 ( 9.5) 8 ( 5.8) 0.516
hepato = 1 (%) 160 (51.3) 12 (57.1) 9 (60.0) 61 ( 44.5) 78 ( 56.1) 0.208
spiders = 1 (%) 90 (28.8) 3 (14.3) 1 ( 6.7) 42 ( 30.7) 44 ( 31.7) 0.089
edema (%) 0.906
0 354 (84.7) 17 (81.0) 12 (80.0) 115 ( 83.9) 119 ( 85.6)
0.5 44 (10.5) 3 (14.3) 1 ( 6.7) 13 ( 9.5) 12 ( 8.6)
1 20 ( 4.8) 1 ( 4.8) 2 (13.3) 9 ( 6.6) 8 ( 5.8)
bili (mean (SD)) 3.22 (4.41) 2.98 (2.11) 2.72 (2.46) 2.86 (3.81) 3.75 (5.50) 0.394
chol (mean (SD)) 369.51 (231.94) 403.43 (204.95) 301.00 (111.32) 358.24 (210.46) 381.73 (262.26) 0.512
albumin (mean (SD)) 3.50 (0.42) 3.63 (0.43) 3.50 (0.49) 3.50 (0.44) 3.53 (0.39) 0.585
copper (mean (SD)) 97.65 (85.61) 174.90 (105.33) 125.40 (89.18) 85.71 (82.27) 94.64 (79.25) <0.001
alk.phos (mean (SD)) 1982.66 (2140.39) 2486.16 (2385.32) 1734.45 (2478.07) 1950.04 (2151.35) 1965.52 (2066.15) 0.706
ast (mean (SD)) 122.56 (56.70) 128.71 (48.74) 112.58 (44.38) 118.91 (55.40) 126.30 (60.27) 0.598
trig (mean (SD)) 124.70 (65.15) 145.81 (56.62) 114.86 (39.59) 120.28 (73.41) 126.38 (60.22) 0.370
platelet (mean (SD)) 257.02 (98.33) 232.65 (97.38) 240.13 (73.93) 262.59 (100.53) 267.95 (92.20) 0.362
protime (mean (SD)) 10.73 (1.02) 10.84 (0.94) 11.23 (0.97) 10.62 (0.84) 10.75 (1.15) 0.137
stage (%) 0.646
1 21 ( 5.1) 2 ( 9.5) 1 ( 6.7) 10 ( 7.3) 3 ( 2.2)
2 92 (22.3) 4 (19.0) 2 (13.3) 31 ( 22.6) 30 ( 21.6)
3 155 (37.6) 7 (33.3) 5 (33.3) 49 ( 35.8) 59 ( 42.4)
4 144 (35.0) 8 (38.1) 7 (46.7) 47 ( 34.3) 47 ( 33.8)
Stratified by trt:sex
test SMD
n
time (mean (SD)) 0.156
status (%) 0.577
0
1
2
age (mean (SD)) 0.521
sex = f (%) NaN
ascites = 1 (%) 0.176
hepato = 1 (%) 0.160
spiders = 1 (%) 0.402
edema (%) 0.212
0
0.5
1
bili (mean (SD)) 0.135
chol (mean (SD)) 0.295
albumin (mean (SD)) 0.164
copper (mean (SD)) 0.542
alk.phos (mean (SD)) 0.163
ast (mean (SD)) 0.182
trig (mean (SD)) 0.294
platelet (mean (SD)) 0.234
protime (mean (SD)) 0.328
stage (%) 0.277
1
2
3
4
⠸ | 64 | Unit tests for the CreateTableOne function Stratified by trt:sex
Overall 1:m 2:m 1:f 2:f p
n 418 21 15 137 139
time (mean (SD)) 1917.78 (1104.67) 1793.48 (1244.70) 2156.33 (1428.56) 2049.67 (1070.20) 1979.65 (1127.52) 0.730
age (mean (SD)) 50.74 (10.45) 55.57 (12.61) 57.09 (10.07) 50.78 (10.65) 47.66 (9.54) <0.001
protime (mean (SD)) 10.73 (1.02) 10.84 (0.94) 11.23 (0.97) 10.62 (0.84) 10.75 (1.15) 0.137
Stratified by trt:sex
test SMD
n
time (mean (SD)) 0.156
age (mean (SD)) 0.521
protime (mean (SD)) 0.328
Stratified by trt:sex
Overall 1:m 2:m 1:f 2:f p test SMD
n 418 21 15 137 139
status (%) 0.033 0.577
0 232 (55.5) 4 (19.0) 7 ( 46.7) 79 ( 57.7) 78 ( 56.1)
1 25 ( 6.0) 3 (14.3) 0 ( 0.0) 7 ( 5.1) 9 ( 6.5)
2 161 (38.5) 14 (66.7) 8 ( 53.3) 51 ( 37.2) 52 ( 37.4)
trt = 2 (%) 154 (49.4) 0 ( 0.0) 15 (100.0) 0 ( 0.0) 139 (100.0) <0.001 NaN
sex = f (%) 374 (89.5) 0 ( 0.0) 0 ( 0.0) 137 (100.0) 139 (100.0) <0.001 NaN
"Stratified by trt"
"" "Overall" "1"
"n" "4,18" "1,58"
"time (mean (SD))" "19,17D78 (11,04D67)" "20,15D62 (10,94D12)"
"status (%)" "" ""
" 0" "232 (55D5)" "83 (52D5)"
" 1" "25 (6D0)" "10 (6D3)"
" 2" "161 (38D5)" "65 (41D1)"
"age (mean (SD))" "50D74 (10D45)" "51D42 (11D01)"
"sex = f (%)" "374 (89D5)" "137 (86D7)"
"ascites = 1 (%)" "24 (7D7)" "14 (8D9)"
"hepato = 1 (%)" "160 (51D3)" "73 (46D2)"
"spiders = 1 (%)" "90 (28D8)" "45 (28D5)"
"edema (%)" "" ""
" 0" "354 (84D7)" "132 (83D5)"
" 0.5" "44 (10D5)" "16 (10D1)"
" 1" "20 (4D8)" "10 (6D3)"
"bili (median [IQR])" "1D40 [0D80, 3D40]" "1D40 [0D80, 3D20]"
"chol (median [IQR])" "3,09D50 [2,49D50, 4,00D00]" "3,15D50 [2,47D75, 4,17D00]"
"albumin (mean (SD))" "3D50 (0D42)" "3D52 (0D44)"
"copper (median [IQR])" "73D00 [41D25, 1,23D00]" "73D00 [40D00, 1,21D00]"
"alk.phos (median [IQR])" "12,59D00 [8,71D50, 19,80D00]" "12,14D50 [8,40D75, 20,28D00]"
"ast (mean (SD))" "1,22D56 (56D70)" "1,20D21 (54D52)"
"trig (median [IQR])" "1,08D00 [84D25, 1,51D00]" "1,06D00 [84D50, 1,46D00]"
"platelet (mean (SD))" "2,57D02 (98D33)" "2,58D75 (1,00D32)"
"protime (mean (SD))" "10D73 (1D02)" "10D65 (0D85)"
"stage (%)" "" ""
" 1" "21 (5D1)" "12 (7D6)"
" 2" "92 (22D3)" "35 (22D2)"
" 3" "155 (37D6)" "56 (35D4)"
" 4" "144 (35D0)" "55 (34D8)"
"Stratified by trt"
"" "2" "p" "test" "SMD"
"n" "1,54" "" "" ""
"time (mean (SD))" "19,96D86 (11,55D93)" "0D883" "" "0D017"
"status (%)" "" "0D884" "exact" "0D054"
" 0" "85 (55D2)" "" "" ""
" 1" "9 (5D8)" "" "" ""
" 2" "60 (39D0)" "" "" ""
"age (mean (SD))" "48D58 (9D96)" "0D018" "" "0D270"
"sex = f (%)" "139 (90D3)" "0D421" "" "0D111"
"ascites = 1 (%)" "10 (6D5)" "0D567" "" "0D089"
"hepato = 1 (%)" "87 (56D5)" "0D088" "" "0D207"
"spiders = 1 (%)" "45 (29D2)" "0D985" "" "0D016"
"edema (%)" "" "0D877" "" "0D058"
" 0" "131 (85D1)" "" "" ""
" 0.5" "13 (8D4)" "" "" ""
" 1" "10 (6D5)" "" "" ""
"bili (median [IQR])" "1D30 [0D72, 3D60]" "0D842" "nonnorm" "0D171"
"chol (median [IQR])" "3,03D50 [2,54D25, 3,77D00]" "0D544" "nonnorm" "0D038"
"albumin (mean (SD))" "3D52 (0D40)" "0D874" "" "0D018"
"copper (median [IQR])" "73D00 [43D00, 1,39D00]" "0D717" "nonnorm" "<0D001"
"alk.phos (median [IQR])" "12,83D00 [9,22D50, 19,49D75]" "0D812" "nonnorm" "0D037"
"ast (mean (SD))" "1,24D97 (58D93)" "0D460" "" "0D084"
"trig (median [IQR])" "1,13D00 [84D50, 1,55D00]" "0D370" "nonnorm" "0D017"
"platelet (mean (SD))" "2,65D20 (90D73)" "0D555" "" "0D067"
"protime (mean (SD))" "10D80 (1D14)" "0D197" "" "0D146"
"stage (%)" "" "0D205" "exact" "0D246"
" 1" "4 (2D6)" "" "" ""
" 2" "32 (20D8)" "" "" ""
" 3" "64 (41D6)" "" "" ""
" 4" "54 (35D1)" "" "" ""
Stratified by trt:sex
Overall 1:m 2:m 1:f
n 4,18 21 15 1,37
time (mean (SD)) 19,17D78 (11,04D67) 17,93D48 (12,44D70) 21,56D33 (14,28D56) 20,49D67 (10,70D20)
status (%)
0 232 (55D5) 4 (19D0) 7 (46D7) 79 ( 57D7)
1 25 ( 6D0) 3 (14D3) 0 ( 0D0) 7 ( 5D1)
2 161 (38D5) 14 (66D7) 8 (53D3) 51 ( 37D2)
age (mean (SD)) 50D74 (10D45) 55D57 (12D61) 57D09 (10D07) 50D78 (10D65)
sex = f (%) 374 (89D5) 0 ( 0D0) 0 ( 0D0) 137 (1,00D0)
ascites = 1 (%) 24 ( 7D7) 1 ( 4D8) 2 (13D3) 13 ( 9D5)
hepato = 1 (%) 160 (51D3) 12 (57D1) 9 (60D0) 61 ( 44D5)
spiders = 1 (%) 90 (28D8) 3 (14D3) 1 ( 6D7) 42 ( 30D7)
edema (%)
0 354 (84D7) 17 (81D0) 12 (80D0) 115 ( 83D9)
0.5 44 (10D5) 3 (14D3) 1 ( 6D7) 13 ( 9D5)
1 20 ( 4D8) 1 ( 4D8) 2 (13D3) 9 ( 6D6)
bili (mean (SD)) 3D22 (4D41) 2D98 (2D11) 2D72 (2D46) 2D86 (3D81)
chol (mean (SD)) 3,69D51 (2,31D94) 4,03D43 (2,04D95) 3,01D00 (1,11D32) 3,58D24 (2,10D46)
albumin (mean (SD)) 3D50 (0D42) 3D63 (0D43) 3D50 (0D49) 3D50 (0D44)
copper (mean (SD)) 97D65 (85D61) 1,74D90 (1,05D33) 1,25D40 (89D18) 85D71 (82D27)
alk.phos (mean (SD)) 19,82D66 (21,40D39) 24,86D16 (23,85D32) 17,34D45 (24,78D07) 19,50D04 (21,51D35)
ast (mean (SD)) 1,22D56 (56D70) 1,28D71 (48D74) 1,12D58 (44D38) 1,18D91 (55D40)
trig (mean (SD)) 1,24D70 (65D15) 1,45D81 (56D62) 1,14D86 (39D59) 1,20D28 (73D41)
platelet (mean (SD)) 2,57D02 (98D33) 2,32D65 (97D38) 2,40D13 (73D93) 2,62D59 (1,00D53)
protime (mean (SD)) 10D73 (1D02) 10D84 (0D94) 11D23 (0D97) 10D62 (0D84)
stage (%)
1 21 ( 5D1) 2 ( 9D5) 1 ( 6D7) 10 ( 7D3)
2 92 (22D3) 4 (19D0) 2 (13D3) 31 ( 22D6)
3 155 (37D6) 7 (33D3) 5 (33D3) 49 ( 35D8)
4 144 (35D0) 8 (38D1) 7 (46D7) 47 ( 34D3)
Stratified by trt:sex
2:f p test SMD
n 1,39
time (mean (SD)) 19,79D65 (11,27D52) 0D730 0D156
status (%) 0D033 0D577
0 78 ( 56D1)
1 9 ( 6D5)
2 52 ( 37D4)
age (mean (SD)) 47D66 (9D54) <0D001 0D521
sex = f (%) 139 (1,00D0) <0D001 NaN
ascites = 1 (%) 8 ( 5D8) 0D516 0D176