cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
Ted
Ted
Level IV

How to make (using only the menu) TWO ROC-curves in the same plot?

How to make (using only the menu) TWO ROC-curves in the same plot (for comparison their)?

Sample three variables are:

T (temperature),

status (0-not sick, 1-sick).

age (1-young, 2-old).

We need give two ROC-curves (for young and old groups) on the same plot.

1 ACCEPTED SOLUTION

Accepted Solutions
ian_jmp
Level X

Re: How to make (using only the menu) TWO ROC-curves in the same plot?

Did you try copying the contents of one FrameBox to another?

  1. Right click on the white area of the 'source' ROC and select 'Edit > Copy Frame Contents'.
  2. Move to the 'target' ROC, right click on the white area and select 'Edit > Paste Frame Contents'.

View solution in original post

5 REPLIES 5
ian_jmp
Level X

Re: How to make (using only the menu) TWO ROC-curves in the same plot?

Did you try copying the contents of one FrameBox to another?

  1. Right click on the white area of the 'source' ROC and select 'Edit > Copy Frame Contents'.
  2. Move to the 'target' ROC, right click on the white area and select 'Edit > Paste Frame Contents'.
KarenC
Super User (Alumni)

Re: How to make (using only the menu) TWO ROC-curves in the same plot?

Ian's method is what I do.  I also use the customize menu (right click "Customize...") to change the colors of the curves.  Once you select the Customize you will  get a dialog box.  On the left is list and for a ROC curve in that list will be a couple of items called "Script".  The first might look like:

Pen Color( 9 );

Y Function( XTemp + 0.511242728306672, XTemp );


I will often delete that one as it is what draws the "yellow" line on the ROC curve that I am generally not interested in. The second will start like:


Line(

[0, 0.0007097232079489, 0.0014194464158978, 0.0014194464158978,

0.0014194464158978,


If you click on the "Templates" menu and select "Pen Color" you will get


Pen Color("blue");Line(

[0, 0.0007097232079489,


Then you can change the color to any color you want (use a color word with the quotes or use a # without the quotes, I usually just pick a word: red, green, purple, orange, etc.).



Ted
Ted
Level IV

Re: How to make (using only the menu) TWO ROC-curves in the same plot?

Dear Karen, Many Thanks for the detailed answer! I'll try!

Ted
Ted
Level IV

Re: How to make (using only the menu) TWO ROC-curves in the same plot?

Amazing! Many thanks, Ian!!!

KarenC
Super User (Alumni)

Re: How to make (using only the menu) TWO ROC-curves in the same plot?

So a little after the fact - I knew there was a way to do the multiple ROC curves without the copy frame contents - I just couldn't remember where at the time.  So,

1. Save your models to your data table

2 . Modeling>model compare

3. Select the models and click Y, Predictors, click OK

4. In the model compare red triangle select ROC and done.


Karen