Debian Codegraph @

pltestsuite/kmslide.htm

raw symbols SCIP
1 <html><h1>kmslide</h1><img src="kmslide.gif"><p>
2 <a href="gall.using.html">How to download and try this example</a><br>
3
4 <pre><b>Usage: pl -gif kmslide.htm
5 Note: the simplistic technique used herein for coloring the
6 overlapping ranges only works when one range is always below the other.
7 <hr></b>
8
9 #proc page
10 linewidth: 2
11 textsize: 11
12 backgroundcolor: darkblue
13 color: white
14 pagesize: 6.6 4.4
15 #if @DEVICE in gif,png
16 scale: 0.7
17 #endif
18
19 // <b> Set up plotting region using <a href="../doc/areadef.html">proc areadef</a></b>
20 #proc areadef
21 title: Kaplan-Meier Example\nProtocol 2M\n10-31-99
22 titledetails: size=14 align=C
23 areaname: slide
24 // 'slide' is equivalent to: lower left at 1 0.7 and upper right at 5.85 3.2
25 yrange: 0 1
26 xrange: 0 60
27 xaxis.stubs: incremental 6
28 xaxis.label: Months
29 yaxis.stubs: incremental 0.1
30 yaxis.stubformat: %3.1f
31
32 // <b> Get data (from end of this file) using <a href="../doc/getdata.html">proc getdata</a></b>
33 #proc getdata
34 #intrailer
35
36 // <b> do the blue range using <a href="../doc/rangesweep.html">proc rangesweep</a></b>
37 #proc rangesweep
38 xfield: 1
39 lofield: 3
40 hifield: 4
41 color: powderblue
42 legendlabel: 95% CI Group A
43
44 // <b> do the pink range using <a href="../doc/rangesweep.html">proc rangesweep</a></b>
45 #proc rangesweep
46 xfield: 1
47 lofield: 6
48 hifield: 7
49 color: pink
50 legendlabel: 95% CI Group B
51
52 // <b> do the yellow range which shows overlap using <a href="../doc/rangesweep.html">proc rangesweep</a></b>
53 #proc rangesweep
54 xfield: 1
55 lofield: 6
56 hifield: 4
57 color: rgb(0.8,1,0.8)
58 legendlabel: Overlap of CIs
59
60 // <b> now do the curves last so they come out on top of ranges..</b>
61
62 // <b> do the blue curve using <a href="../doc/lineplot.html">proc lineplot</a></b>
63 #proc lineplot
64 xfield: 1
65 yfield: 2
66 linedetails: color=blue
67 legendlabel: Group A
68
69 // <b> do the red curve using <a href="../doc/lineplot.html">proc lineplot</a></b>
70 #proc lineplot
71 xfield: 1
72 yfield: 5
73 linedetails: color=red
74 legendlabel: Group B
75
76 // <b> render the legend using <a href="../doc/legend.html">proc legend</a></b>
77 #proc legend
78 location: max-1 max
79 seglen: 0.2
80 specifyorder:
81 Group A
82 95% CI Group A
83 Group B
84 95% CI Group B
85 Overlap
86
87 // <b> here is the data... </b>
88 #proc trailer
89 data:
90 // T val1 lo1 hi1 val2 lo2 hi2
91 0 1 1 1 1 1 1
92 1 0.993 0.986 1.000 0.9895 0.981 0.998
93 2 0.9915 0.984 0.999 0.98 0.968 0.992
94 3 0.9845 0.974 0.995 0.972 0.958 0.986
95 4 0.9725 0.959 0.986 0.9625 0.946 0.979
96 5 0.937 0.916 0.958 0.9285 0.906 0.951
97 6 0.892 0.865 0.919 0.884 0.856 0.912
98 8 0.8335 0.801 0.866 0.8365 0.804 0.869
99 10 0.78 0.744 0.816 0.782 0.746 0.818
100 12 0.741 0.703 0.779 0.7585 0.721 0.796
101 14 0.6855 0.645 0.726 0.726 0.687 0.765
102 16 0.6565 0.615 0.698 0.6945 0.654 0.735
103 18 0.628 0.586 0.670 0.6595 0.618 0.701
104 20 0.607 0.564 0.650 0.6385 0.596 0.681
105 22 0.5685 0.525 0.612 0.6155 0.572 0.659
106 24 0.561 0.517 0.605 0.6035 0.560 0.647
107 26 0.536 0.491 0.581 0.569 0.524 0.614
108 28 0.514 0.469 0.559 0.539 0.493 0.585
109 30 0.497 0.451 0.543 0.5155 0.469 0.562
110 32 0.474 0.427 0.521 0.509 0.465 0.553
111 34 0.4635 0.416 0.511 0.4885 0.441 0.536
112 36 0.444 0.396 0.492 0.469 0.420 0.518
113 38 0.444 0.396 0.492 0.442 0.391 0.493
114 40 0.424 0.374 0.474 0.4365 0.385 0.488
115 42 0.4115 0.360 0.463 0.4305 0.379 0.482
116 44 0.403 0.350 0.456 0.4235 0.371 0.476
117 46 0.3865 0.331 0.442 0.415 0.361 0.469
118 48 0.3755 0.318 0.433 0.394 0.335 0.453
119 50 0.356 0.290 0.422 0.394 0.335 0.453