<?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: For Loop Creating Multiple Distribution Platform Analysis in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/For-Loop-Creating-Multiple-Distribution-Platform-Analysis/m-p/797532#M97339</link>
    <description>&lt;P&gt;In the line of code below&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Continuous Distribution( Column( cols[1] ), Summary Statistics( 1 ), Fit normal( Goodness of Fit( 1 ) ) )&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;you have the number "1" in&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;cols[1]&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and it should be&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;cols[i]&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 10 Sep 2024 15:34:19 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2024-09-10T15:34:19Z</dc:date>
    <item>
      <title>For Loop Creating Multiple Distribution Platform Analysis</title>
      <link>https://community.jmp.com/t5/Discussions/For-Loop-Creating-Multiple-Distribution-Platform-Analysis/m-p/797521#M97338</link>
      <description>&lt;P&gt;I have a code where I'm using the Distribution platform to perform normality checks on multiple columns.&amp;nbsp; Right now, I am using a for-loop to iterate through each column, open a distribution, and then extract the value of the normality test.&amp;nbsp; A subset of the code is shown below.&amp;nbsp; I have an issue where the Distribution platform just opens the same analysis for the first column over and over.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;For( i = 1, i &amp;lt;= n, i++,
	dist = Distribution(
		Invisible,
		Continuous Distribution( Column( cols[1] ), Summary Statistics( 1 ), Fit normal( Goodness of Fit( 1 ) ) ),
		Histograms Only
	);

	r = Report( dist );

	p = r[Outline Box( "Fitted Normal Distribution" )][Outline Box( "Goodness-of-Fit Test" )][Table Box( 2 )][Number Col Box( 2 )] &amp;lt;&amp;lt; get( 1 );
	
	norm = If( p &amp;gt;= 0.05, "Yes", "No" ) || " (p = " || Char( p ) || ")";

	dist &amp;lt;&amp;lt; Close;
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 15:30:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/For-Loop-Creating-Multiple-Distribution-Platform-Analysis/m-p/797521#M97338</guid>
      <dc:creator>ChrisMuenzer</dc:creator>
      <dc:date>2024-09-10T15:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: For Loop Creating Multiple Distribution Platform Analysis</title>
      <link>https://community.jmp.com/t5/Discussions/For-Loop-Creating-Multiple-Distribution-Platform-Analysis/m-p/797532#M97339</link>
      <description>&lt;P&gt;In the line of code below&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Continuous Distribution( Column( cols[1] ), Summary Statistics( 1 ), Fit normal( Goodness of Fit( 1 ) ) )&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;you have the number "1" in&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;cols[1]&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and it should be&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;cols[i]&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Sep 2024 15:34:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/For-Loop-Creating-Multiple-Distribution-Platform-Analysis/m-p/797532#M97339</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-09-10T15:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: For Loop Creating Multiple Distribution Platform Analysis</title>
      <link>https://community.jmp.com/t5/Discussions/For-Loop-Creating-Multiple-Distribution-Platform-Analysis/m-p/797699#M97354</link>
      <description>&lt;P&gt;Thanks.&amp;nbsp; Sorry about missing a simple mistake.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you also know the correct way to close the distribution platform?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 06:33:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/For-Loop-Creating-Multiple-Distribution-Platform-Analysis/m-p/797699#M97354</guid>
      <dc:creator>ChrisMuenzer</dc:creator>
      <dc:date>2024-09-11T06:33:46Z</dc:date>
    </item>
  </channel>
</rss>

