Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- JMP User Community
- :
- Discussions
- :
- Discussions
- :
- Re: Plotting censored values in a Life Distribution

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Plotting censored values in a Life Distribution

Mar 23, 2015 8:10 AM
(6124 views)

I am building a model using the Life Distribution tool and get a nice plot that shows my failures. Other tools I've used will allow me to plot my censored data, or suspensions, on top of this plot, but I cannot seem to figure out how to do it in JMP. Has anyone figured out how to add the censored data in? Using JSL to do this would be perfectly acceptable too, if anyone knows how to add this in.

10 REPLIES 10

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Re: Plotting censored values in a Life Distribution

Hi bradford.foulkes,

Does the Event Plot in Life Distribution plot the censored data in the manner that you're looking for?

Best,

Michael

open**(**"$SAMPLE_DATA/Reliability/Fan.jmp"**)**;

Life Distribution**(** Y**(**:Time**)**, Censor**(** :Censor **)**,

SendToReport**(**

Dispatch**(** **{}**, "Event Plot", OutlineBox, **{**Close**(** **0** **)}** **)**,

Dispatch**(** **{}**, "Compare Distributions", OutlineBox, **{**Close**(** **1** **)}** **)**

**)**

**)**;

Michael Crotty

Sr Statistical Writer

JMP Development

Sr Statistical Writer

JMP Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Re: Plotting censored values in a Life Distribution

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Re: Plotting censored values in a Life Distribution

Would it be possible to send a screenshot of what you're trying to recreate?

Michael Crotty

Sr Statistical Writer

JMP Development

Sr Statistical Writer

JMP Development

Highlighted
##

This is what I'm trying to recreate, where the blue circles are the failures and the red triangles are the censored values

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Re: Plotting censored values in a Life Distribution

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Re: Plotting censored values in a Life Distribution

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Re: Plotting censored values in a Life Distribution

This is admittedly not the most robust or nicest looking script, but I think it should help you on your way toward getting a plot like you're looking for.

dt = open**(**"$DOCUMENTS/Temp/JMP_EXAMPLE_TABLE.jmp"**)**;

cvec = **(**dt:Aging << **get values)[**dt << **get rows where(**:Censor=="S"**)]**;

ld = Life Distribution**(** Y**(** :Aging **)**, Censor**(** :Censor **)**, Censor Code**(** "S" **)** **)**;

rp = report**(**ld**)**;

fb = rp**[**"Compare Distributions"**][**FrameBox**(****1)]**;

buildexpr = expr**(**Glue**())**;

for**(** i=**1**, i<=nrows**(**cvec**)**, i++,

insertinto**(**buildexpr,evalexpr**(**Marker**(1**,**{**Expr**(**cvec**[**i**])**,**0})))**

**)**;

nameexpr**(**buildexpr**)**;

addexpr = expr**(**Add Graphics Script**)**;

insertinto**(**addexpr,nameexpr**(**buildexpr**))**;

nameexpr**(**addexpr**)**;

finalexpr = expr**(**Send**(**fb**))**;

insertinto**(**finalexpr,nameexpr**(**addexpr**))**;

nameexpr**(**finalexpr**)**;

eval**(**finalexpr**)**;

Michael Crotty

Sr Statistical Writer

JMP Development

Sr Statistical Writer

JMP Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Re: Plotting censored values in a Life Distribution

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Re: Plotting censored values in a Life Distribution

I agree that does sound strange. Is there any way that you could share the data? I'd be interested to see if I can reproduce that behavior.

Regards,

Michael

Michael Crotty

Sr Statistical Writer

JMP Development

Sr Statistical Writer

JMP Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Re: Plotting censored values in a Life Distribution

Michael, when I load it like this, I only get failures to show on the plot. If I remove the “By” value, everything shows up. I’ve attached a document with some data that this is happening on too, so I’ll be curious to see if you can recreate it.

Brad