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
- :
- changing how many decimal points are displayed

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

Oct 2, 2011 3:58 PM
(1603 views)

I am working in JMP 8 for Mac, Fit X by Y, doing a contingency analysis, and am most interested in the contingency table.

How do I fix the display of percentaghes so that there are no decimal points, only whole numbers?

Where can i find this sort of informastion in the user manuals?

Thank you for your help!!

- Michael D.

1 ACCEPTED SOLUTION

Accepted Solutions

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

Solution

The contingency table does not appear to be editable (I work in JMP 9 for Mac) but you can export it into a data table by selecting "make into data table" from under the red triangle. The nr of decimals can then be set for the columns. This can also be scripted as in the example below (the first part borrrowed from the example found in Help/Displaybox Scripting/CrossTabBox).

Open**(** "$ENGLISH_SAMPLE_DATA/Alcohol.jmp" **)**;

c = Contingency**(**

Y**(** :Relapsed **)**,

X**(** :Alcohol Consumption **)**,

Freq**(** :Count **)**,

Contingency Table**(**

Count**(** **1** **)**,

Total %**(** **1** **)**,

Col %**(** **1** **)**,

Row %**(** **1** **)**,

Expected**(** **0** **)**,

Deviation**(** **0** **)**,

Cell Chi Square**(** **0** **)**,

Col Cum**(** **0** **)**,

Col Cum %**(** **0** **)**,

Row Cum**(** **0** **)**,

Row Cum %**(** **0** **)**

**)**

**)**;

cr = c << report;

ctb = cr**[**CrosstabBox**(** **1** **)]**;

Print**(** ctb << Get As Matrix **)**;

dt=ctb << make into datatable;

for**(**i=1, i<= ncol**(**dt**)**, i++, if **((**column**(**dt,i**)**<<get data type**)**=="Numeric",column**(**dt,i**)**<< format**(**"fixed dec",**0****)));**

2 REPLIES

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

The contingency table does not appear to be editable (I work in JMP 9 for Mac) but you can export it into a data table by selecting "make into data table" from under the red triangle. The nr of decimals can then be set for the columns. This can also be scripted as in the example below (the first part borrrowed from the example found in Help/Displaybox Scripting/CrossTabBox).

Open**(** "$ENGLISH_SAMPLE_DATA/Alcohol.jmp" **)**;

c = Contingency**(**

Y**(** :Relapsed **)**,

X**(** :Alcohol Consumption **)**,

Freq**(** :Count **)**,

Contingency Table**(**

Count**(** **1** **)**,

Total %**(** **1** **)**,

Col %**(** **1** **)**,

Row %**(** **1** **)**,

Expected**(** **0** **)**,

Deviation**(** **0** **)**,

Cell Chi Square**(** **0** **)**,

Col Cum**(** **0** **)**,

Col Cum %**(** **0** **)**,

Row Cum**(** **0** **)**,

Row Cum %**(** **0** **)**

**)**

**)**;

cr = c << report;

ctb = cr**[**CrosstabBox**(** **1** **)]**;

Print**(** ctb << Get As Matrix **)**;

dt=ctb << make into datatable;

for**(**i=1, i<= ncol**(**dt**)**, i++, if **((**column**(**dt,i**)**<<get data type**)**=="Numeric",column**(**dt,i**)**<< format**(**"fixed dec",**0****)));**

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

Oct 4, 2011 8:46 AM
(1393 views)