<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to set format for Distribution platform output? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-set-format-for-Distribution-platform-output/m-p/44497#M25512</link>
    <description>&lt;P&gt;Oh, Many Thanks! I will try...&lt;BR /&gt;P.S. It's strange, why I can't put "kudos" (stopped working)?!&lt;/P&gt;</description>
    <pubDate>Thu, 14 Sep 2017 03:10:24 GMT</pubDate>
    <dc:creator>Ted</dc:creator>
    <dc:date>2017-09-14T03:10:24Z</dc:date>
    <item>
      <title>How to set format for Distribution platform output?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-format-for-Distribution-platform-output/m-p/44485#M25507</link>
      <description>&lt;P&gt;Analyze=&amp;gt;Distribution&lt;BR /&gt;gives (by default) the following format:&lt;/P&gt;&lt;P&gt;Level Count Prob&lt;BR /&gt;1&amp;nbsp; &amp;nbsp; 4&amp;nbsp; &amp;nbsp; 0,03846&lt;BR /&gt;2&amp;nbsp; &amp;nbsp;32&amp;nbsp; &amp;nbsp;0,30769&lt;BR /&gt;3&amp;nbsp; &amp;nbsp;57&amp;nbsp; &amp;nbsp;0,54808&lt;BR /&gt;4&amp;nbsp; &amp;nbsp;11&amp;nbsp; &amp;nbsp;0,10577&lt;BR /&gt;Total&amp;nbsp; 104&amp;nbsp; 1,00000&lt;/P&gt;&lt;P&gt;but I need so:&lt;/P&gt;&lt;P&gt;Level Count Prob&lt;BR /&gt;1&amp;nbsp; &amp;nbsp; 4&amp;nbsp; &amp;nbsp; &amp;nbsp;3,8%&lt;BR /&gt;2&amp;nbsp; &amp;nbsp;32&amp;nbsp; &amp;nbsp;30,8%&lt;BR /&gt;3&amp;nbsp; &amp;nbsp;57&amp;nbsp; &amp;nbsp;54,8%&lt;BR /&gt;4&amp;nbsp; &amp;nbsp;11&amp;nbsp; &amp;nbsp;10,6%&lt;BR /&gt;Total&amp;nbsp; 104&amp;nbsp; 100,0%&lt;/P&gt;&lt;P&gt;It's easy to obtain if call (by double-clicking on it):&lt;BR /&gt;"Column Numeric Format".&lt;/P&gt;&lt;P&gt;OK! But it works for ONE variable!&amp;nbsp;But I have MANY variables! How to set this format for all (in JMP v10)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Files =&amp;gt; Preferences=&amp;gt; ???&lt;/P&gt;&lt;P&gt;(or in some other way...?)&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2017 19:15:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-format-for-Distribution-platform-output/m-p/44485#M25507</guid>
      <dc:creator>Ted</dc:creator>
      <dc:date>2017-09-13T19:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to set format for Distribution platform output?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-format-for-Distribution-platform-output/m-p/44492#M25509</link>
      <description>&lt;P&gt;The column in the table displayed is a Probability, therefore it is displayed properly. &amp;nbsp;If you change it to a percent, then you should also change the column header&amp;nbsp;from "Prob" to "Percent".&lt;/P&gt;
&lt;P&gt;There is not an option in the platform to change the format, however, in JSL&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\Big Class.jmp" );
dis = dt &amp;lt;&amp;lt; Distribution( Nominal Distribution( Column( :sex ) ) );
Report( dis )["Frequencies"][Table Box( 1 )][Number Col Box( 2 )] &amp;lt;&amp;lt;
set format( "Percent", 7, 2 ) &amp;lt;&amp;lt; set heading( "Percent" );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Sep 2017 22:10:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-format-for-Distribution-platform-output/m-p/44492#M25509</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-09-13T22:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to set format for Distribution platform output?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-format-for-Distribution-platform-output/m-p/44497#M25512</link>
      <description>&lt;P&gt;Oh, Many Thanks! I will try...&lt;BR /&gt;P.S. It's strange, why I can't put "kudos" (stopped working)?!&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 03:10:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-format-for-Distribution-platform-output/m-p/44497#M25512</guid>
      <dc:creator>Ted</dc:creator>
      <dc:date>2017-09-14T03:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to set format for Distribution platform output?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-format-for-Distribution-platform-output/m-p/44498#M25513</link>
      <description>&lt;P&gt;Concerning the Kudos, I would try changing your browser to Chrome&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 03:09:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-format-for-Distribution-platform-output/m-p/44498#M25513</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-09-14T03:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to set format for Distribution platform output?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-format-for-Distribution-platform-output/m-p/44499#M25514</link>
      <description>&lt;P&gt;I always use Chrome&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 03:13:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-format-for-Distribution-platform-output/m-p/44499#M25514</guid>
      <dc:creator>Ted</dc:creator>
      <dc:date>2017-09-14T03:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to set format for Distribution platform output?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-format-for-Distribution-platform-output/m-p/44710#M25590</link>
      <description>&lt;P&gt;Ed,&lt;/P&gt;
&lt;P&gt;I am replying to your direct email to me, because your question to me was something that I believe others may find useful. &amp;nbsp;The direct emails are not available for searching by the general user community.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is my response to your direct email to me, which said:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Jim, sorry, I have 100 columns name(original) in my data file (names go in a row), I bring some of them: 
1.1	1.2	1.3	1.4.1	1.5.1	1.5.2	1.5.3	1.5.4	1.5.5	1.5.6	1.5.7	1.5.8
I try list them using comma as separator in your script (but it does not work)... Ed
 
Names Default To Here( 1 );
dt = Open( "F:/R/data/donor.jmp" );
dis = dt &amp;lt;&amp;lt; Distribution( Nominal Distribution( Column( : 1.1, 1.2, 1.3, etc. ) ) );
Report( dis )["Frequencies"][Table Box( 1 )][Number Col Box( 2 )] &amp;lt;&amp;lt;
set format( "Percent", 7, 1 ) &amp;lt;&amp;lt; set heading( "Percent" );&lt;/PRE&gt;
&lt;P&gt;The code you specified to create the distributions is incorrect, and additionally, the code required to handle multiple distributions forces a change in the code required to pass through all of the outputs to change the Frequencies tables&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = New Table( "All Nominal",
	Add Rows( 40 ),
	New Column("1.1",
	Character,
		"Nominal",
		Set Values(
			{"KATIE", "LOUISE", "JANE", "JACLYN", "LILLIE", "TIM", "JAMES", "ROBERT",
			"BARBARA", "ALICE", "SUSAN", "JOHN", "JOE", "MICHAEL", "DAVID", "JUDY",
			"ELIZABETH", "LESLIE", "CAROL", "PATTY", "FREDERICK", "ALFRED", "HENRY",
			"LEWIS", "EDWARD", "CHRIS", "JEFFREY", "MARY", "1.1", "ROBERT",
			"WILLIAM", "CLAY", "MARK", "DANNY", "MARTHA", "MARION", "PHILLIP",
			"LINDA", "KIRK", "LAWRENCE"}
		)
	),
	New Column("1.2",
	Character,
		"Nominal",
		Set Values(
			{"12", "12", "12", "12", "12", "12", "12", "12", "13", "13", "13", "13",
			"13", "13", "13", "14", "14", "14", "14", "14", "14", "14", "14", "14",
			"14", "14", "14", "15", "15", "15", "15", "15", "15", "15", "16", "16",
			"16", "17", "17", "17"}
		)
	),
	New Column("1.3",
	Character( 1 ),
		"Nominal",
		Set Values(
			{"F", "F", "F", "F", "F", "M", "M", "M", "F", "F", "F", "M", "M", "M",
			"M", "F", "F", "F", "F", "F", "M", "M", "M", "M", "M", "M", "M", "F",
			"F", "M", "M", "M", "M", "M", "F", "F", "M", "F", "M", "M"}
		)
	),
	New Column("1.4",
		Character,
		"Nominal",
		Set Values(
			{"59", "61", "55", "66", "52", "60", "61", "51", "60", "61", "56", "65",
			"63", "58", "59", "61", "62", "65", "63", "62", "63", "64", "65", "64",
			"68", "64", "69", "62", "64", "67", "65", "66", "62", "66", "65", "60",
			"68", "62", "68", "70"}
		)
	),
	New Column("1.5",
	Character,
		"Nominal",
		Set Values(
			{"95", "123", "74", "145", "64", "84", "128", "79", "112", "107", "67",
			"98", "105", "95", "79", "81", "91", "142", "84", "85", "93", "99",
			"119", "92", "112", "99", "113", "92", "112", "128", "111", "105", "104",
			"106", "112", "115", "128", "116", "134", "172"}
		)
	)
);

// Run the distributions
dis = dt &amp;lt;&amp;lt; Distribution(
	Nominal Distribution( Column( :Name( "1.1" ) ) ),
	Nominal Distribution( Column( :Name( "1.2" ) ) ),
	Nominal Distribution( Column( :Name( "1.3" ) ) ),
	Nominal Distribution( Column( :Name( "1.4" ) ) ),
	Nominal Distribution( Column( :Name( "1.5" ) ) )
);

// Change the tables
// Because of Your column names(this is a JMP bug I believe), we have
// to use a direct reference to the Outline Box number.  See below where
// if the column names were not of the form 1.1, 1.2, 1.3 etc. a better
// reference could be made 
For( i = 2, i &amp;lt;= N Col( dt ) * 2, i++,
	Report( dis )[Outline Box( i )]["Frequencies"][Table Box( 1 )][Number Col Box( 2 )] &amp;lt;&amp;lt;
	set format( "Percent", 7, 2 ) &amp;lt;&amp;lt; set heading( "Percent" )
);


/*For( i = 1, i &amp;lt;= N Col( dt ), i++,
	Report( dis )[column(dt,i)&amp;lt;&amp;lt;get name]["Frequencies"][Table Box( 1 )][Number Col Box( 2 )] &amp;lt;&amp;lt;
	set format( "Percent", 7, 2 ) &amp;lt;&amp;lt; set heading( "Percent" )
);*/&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 17 Sep 2017 20:40:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-format-for-Distribution-platform-output/m-p/44710#M25590</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-09-17T20:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to set format for Distribution platform output?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-format-for-Distribution-platform-output/m-p/44718#M25597</link>
      <description>&lt;P&gt;Grandiose! Thank you very much for your help!&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2017 07:28:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-format-for-Distribution-platform-output/m-p/44718#M25597</guid>
      <dc:creator>Ted</dc:creator>
      <dc:date>2017-09-18T07:28:37Z</dc:date>
    </item>
  </channel>
</rss>

