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
- :
- Adding reference lines for sigma to a 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
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Apr 10, 2012 12:41 PM
(552 views)

I would like to customize my distribution histogram by adding reference lines for +/- 3 sd but I can't figure out how to get the 'Std Dev' without entering it manually.

What I am looking for is a customization that can be pasted into many separate distribution plots.

Any suggustions would be most helpful. - Tim

1 REPLY

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

Apr 13, 2012 7:25 AM
(424 views)

One way to get column stats is with summarize():

dt = Open("$ENGLISH_SAMPLE_DATA/Big Class.jmp");

//Get column stats

summarize(

sigma=StdDev(:height),

avg = mean(:height)

);

siglow = avg - 3 * sigma;

sighigh = avg + 3 * sigma;

//make distribution

Distribution(

Continuous Distribution( Column( :height ), Count Axis( 1 ) ),

SendToReport(

Dispatch(

{"height"},

"1",

ScaleBox,

{

Min( 45 ), Max( 78), Inc( 5 ),Minor Ticks( 1 ),

Add Ref Line( eval(siglow), Dotted, "Black","-3sd" ),

Add Ref Line( eval(sighigh), Dotted, "Black","+3sd" )

}

)

)

);