Prev: SAS I/O error
Next: result
From: Daniel on 18 Jan 2010 13:22 Good afternoon All, I don't believe there is a function in SAS to produce nomograms such as this one: http://www.prostate-cancer.org/education/riskases/img/Tisman_Nomogram4.gif Would annotate be the right way to go to get to something like the above? Does anyone have any advice, based on experience or not, about this? Right now, I use Excel to draw the lines to scale, then I export as an image and use an image editing software to add the labels and the values on each scale by hand. Of course, whenever I need to change the model, I need to repeat the process! I'm willing to better invest that time in learning how to use annotate (or any other tool) to do this, but would like to confirm that this would be the best SAS tool for the job. Thank you in advance, Daniel
From: "daniel.biostatistics on 19 Jan 2010 09:44 Apologies, the URL originally included in my message, linking to the nomogram figure, got cut. Here's a tiny URL: http://tiny.cc/m6dtP Daniel On Tue, 19 Jan 2010 09:26:54 -0500, daniel.biostatistics(a)gmail.com <daniel.biostatistics(a)GMAIL.COM> wrote: >Good morning All, > >I posted this using Google Groups yesterday but it has failed to appear on >SAS-L. > >I don't believe there is a function in SAS to produce nomograms such >as this one: > >http://www.prostate-cancer.org/education/riskases/img/Tisman_Nomogram... > >Would annotate be the right way to go to get to something like the >above? Does anyone have any advice, based on experience or not, about >this? > >Right now, I use Excel to draw the lines to scale, then I export as an >image and use an image editing software to add the labels and the >values on each scale by hand. Of course, whenever I need to change the >model, I need to repeat the process! I'm willing to better invest that >time in learning how to use annotate (or any other tool) to do this, >but would like to confirm that this would be the best SAS tool for the >job. > >Thank you in advance, > >Daniel
From: Daniel on 22 Jan 2010 15:04 Dear All, Thank you to Ya and Nathaniel for their replies. They both suggested a combination of GPLOT and ANNOTATE to solve this issue. The basic idea is to have a dataset with each of the points of the nomogram represented (the X value is the number of points, the Y value indicates the horizontal position of each point scale on the actual nomogram), along with the values to be displayed above each point. Then use GPLOT to plot these points and use the ANNOTATE facility to add the values above each point. Finally, use another dataset with ANNOTATE instructions to draw a line that goes from the first to the last point of each scale, and to add a label to the left of the graph. In order to have space for that label, you will need to use an AXIS statement that goes from, for instance, -35 to 105 (if you have a 100-point scale). You will also need to specify that both axes be the same color as your background, so as to make them disappear. The GPLOT code could look like this: AXIS1 ORDER=(-35 TO 105 BY 5) COLOR=WHITE; AXIS2 COLOR=WHITE; PROC GPLOT DATA=PARAM4 ANNO=PARAM4; PLOT Y * X / ANNO=PARAM5 HAXIS=AXIS1 VAXIS=AXIS2; SYMBOL1 FONT=SPECIALU V=K HEIGHT=1 COLOR=BLACK; RUN; QUIT; PARAM4 contains all the datapoints' coordinates along with the data to label them. PARAM5 contains the coordinates of the first and last datapoint for each scale, ANNOTATE instructions to draw a line through each pair of points, and the values of the labels to be placed to the left of each scale. It's a bit cumbersome to explain everything in a succinct manner, but if you need to perform such a task, just e-mail me and I'll be happy to send you the code I used for my particular project. Again, thanks to Ya and Nathaniel for their very useful suggestions! Daniel On Tue, 19 Jan 2010 09:44:11 -0500, daniel.biostatistics(a)gmail.com <daniel.biostatistics(a)GMAIL.COM> wrote: >Apologies, the URL originally included in my message, linking to the >nomogram figure, got cut. Here's a tiny URL: > >http://tiny.cc/m6dtP > >Daniel > > >On Tue, 19 Jan 2010 09:26:54 -0500, daniel.biostatistics(a)gmail.com ><daniel.biostatistics(a)GMAIL.COM> wrote: > >>Good morning All, >> >>I posted this using Google Groups yesterday but it has failed to appear on >>SAS-L. >> >>I don't believe there is a function in SAS to produce nomograms such >>as this one: >> >>http://www.prostate-cancer.org/education/riskases/img/Tisman_Nomogram... >> >>Would annotate be the right way to go to get to something like the >>above? Does anyone have any advice, based on experience or not, about >>this? >> >>Right now, I use Excel to draw the lines to scale, then I export as an >>image and use an image editing software to add the labels and the >>values on each scale by hand. Of course, whenever I need to change the >>model, I need to repeat the process! I'm willing to better invest that >>time in learning how to use annotate (or any other tool) to do this, >>but would like to confirm that this would be the best SAS tool for the >>job. >> >>Thank you in advance, >> >>Daniel
|
Pages: 1 Prev: SAS I/O error Next: result |