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

- JMP User Community
- :
- Discussions
- :
- How can find the median of one of the clusters of densely distributed data?

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

Highlighted
##

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

How can find the median of one of the clusters of densely distributed data?

Aug 31, 2020 5:23 AM
(154 views)

Sets no duplicate values in the data.But the data is not evenly distributed.

How can use the JMP module to find the median of the densest distribution?

Thanks!

`da=[17,99,65,75,15,14,80,18,55,70,12,19,13,100,1,20,90,60,95,85,16];`

3 REPLIES 3

Highlighted
##

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

Re: How can find the median of one of the clusters of densely distributed data?

I would go to the red triangle and select

Save==>Level Numbers

or

Save==>Mid Points

and then either use Tabulate or Summary or Distribution using the newly saved column as a grouping variable

Jim

Highlighted
##

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

Re: How can find the median of one of the clusters of densely distributed data?

Thank Jim!

I want to know if these procedures can produce results without a graphical interface and just operate in memory.It is not known whether JMP has a function in JSL.

Thanks!

I want to know if these procedures can produce results without a graphical interface and just operate in memory.It is not known whether JMP has a function in JSL.

Thanks!

Highlighted
##

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

Re: How can find the median of one of the clusters of densely distributed data?

The interactive displays are just elements in memory, and do not have to be displayed. Yes, it probably takes more memory for a direct function that would calculate the medians of each bin, but again, it is just memory.

So, I do understand your comment, but then to take it to an extreme, then you should be programming in the assembly language for the computer you are running on, because.....anything more than that is taking up more memory than needed.

Here is a display of the medians being created by just a simple function call. Yes, it does call the Distribution Platform, but you never see it.

```
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/big class.jmp" );
showBinMedians = Function( {dt, var},
{defaultlocal},
dis = dt << Distribution( invisible, Continuous Distribution( Column( As Column( var ) ) ) );
dis << save( level numbers );
Report( dis ) << close window;
tab = dt << Tabulate(
invisible,
Show Control Panel( 0 ),
Add Table(
Column Table( Analysis Columns( Column( var ) ), Statistics( Median ) ),
Row Table( Grouping Columns( Column( N Cols( dt ) ) ) )
)
);
Report( tab ) << journal;
Report( tab ) << close window;
dt << delete columns( N Cols( dt ) );
);
x = showBinMedians( dt, "Height" );
```

Jim