<?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: Is there a way in JMP16 to provide a user-defined reference distribution for a one-sample KS test? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Is-there-a-way-in-JMP16-to-provide-a-user-defined-reference/m-p/451757#M69843</link>
    <description>&lt;P&gt;I'm not exactly sure sure if this is what you are looking for, but the data has to be in specific format for KS to work (&lt;A href="https://community.jmp.com/t5/Discussions/non-parametric-KS-test-of-two-samples/m-p/39016#M22815 " target="_blank" rel="noopener"&gt; Re: non parametric KS test of two samples&lt;/A&gt;&amp;nbsp;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data is is JMPs Big_Class sample data which looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1642230370805.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/39027iCE9B74CF8EE0DDB3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1642230370805.png" alt="jthi_1-1642230370805.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Script to run Kolmogorov Smirnov with height as response and x as factor&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
obj = dt &amp;lt;&amp;lt; Oneway(Y(:Height), X(:sex));
obj &amp;lt;&amp;lt; Kolmogorov Smirnov Test(1);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1642230341549.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/39026i2E0F19CD5C601921/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1642230341549.png" alt="jthi_0-1642230341549.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this is what you are looking for, you might be able to add the reference data to same column as the the rest of data and then separate them in grouping column:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_2-1642230773881.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/39028i76C81F9165EA6A8B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_2-1642230773881.png" alt="jthi_2-1642230773881.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 15 Jan 2022 07:13:31 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2022-01-15T07:13:31Z</dc:date>
    <item>
      <title>Is there a way in JMP16 to provide a user-defined reference distribution for a one-sample KS test?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-way-in-JMP16-to-provide-a-user-defined-reference/m-p/451672#M69836</link>
      <description>&lt;P&gt;Hello JMP users,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to analyze the distribution of fluorescent cellular features, such as nuclei, along a linear scan through a layered tissue. &amp;nbsp;In healthy tissue there is a highly reproducible pattern but in diseased areas the pattern is altered. &amp;nbsp;I'd like to test statistically whether the pattern in a selected region is different than that of healthy tissue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Kolmogorov-Smirnov test has been suggested as an approach to compare two distributions. I thought it might be useful to create a user-defined reference distribution from many scans of healthy tissue and then compare scans of diseased tissue against this reference distribution in a one-sample KS test.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way in JMP16 to enter a user-defined distribution as the reference distribution? &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If not, would repeated two-sample KS tests using the user-defined reference distribution be the best approach?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your time and help in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 00:44:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-way-in-JMP16-to-provide-a-user-defined-reference/m-p/451672#M69836</guid>
      <dc:creator>MPK</dc:creator>
      <dc:date>2023-06-09T00:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way in JMP16 to provide a user-defined reference distribution for a one-sample KS test?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-way-in-JMP16-to-provide-a-user-defined-reference/m-p/451757#M69843</link>
      <description>&lt;P&gt;I'm not exactly sure sure if this is what you are looking for, but the data has to be in specific format for KS to work (&lt;A href="https://community.jmp.com/t5/Discussions/non-parametric-KS-test-of-two-samples/m-p/39016#M22815 " target="_blank" rel="noopener"&gt; Re: non parametric KS test of two samples&lt;/A&gt;&amp;nbsp;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data is is JMPs Big_Class sample data which looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1642230370805.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/39027iCE9B74CF8EE0DDB3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1642230370805.png" alt="jthi_1-1642230370805.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Script to run Kolmogorov Smirnov with height as response and x as factor&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
obj = dt &amp;lt;&amp;lt; Oneway(Y(:Height), X(:sex));
obj &amp;lt;&amp;lt; Kolmogorov Smirnov Test(1);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1642230341549.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/39026i2E0F19CD5C601921/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1642230341549.png" alt="jthi_0-1642230341549.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this is what you are looking for, you might be able to add the reference data to same column as the the rest of data and then separate them in grouping column:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_2-1642230773881.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/39028i76C81F9165EA6A8B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_2-1642230773881.png" alt="jthi_2-1642230773881.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jan 2022 07:13:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-way-in-JMP16-to-provide-a-user-defined-reference/m-p/451757#M69843</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-01-15T07:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way in JMP16 to provide a user-defined reference distribution for a one-sample KS test?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-way-in-JMP16-to-provide-a-user-defined-reference/m-p/451769#M69847</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi Jarmo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks very much for clarifying the specific format for a two-sample KS test in JMP16 and providing a script for running the analysis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question was whether I could define my own user-defined distribution to serve as a reference for a one-sample KS test, which as I understand it compares an experimental distribution with a reference distribution (for example, a normal distribution). &amp;nbsp;My plan was to create a reference distribution based on analysis of healthy tissue that would be compared with experimental distributions from diseased tissue in a one-sample KS test.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible in JMP16 to add a user-defined distribution as the reference distribution for a one-sample KS test?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jan 2022 22:18:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-way-in-JMP16-to-provide-a-user-defined-reference/m-p/451769#M69847</guid>
      <dc:creator>MPK</dc:creator>
      <dc:date>2022-01-15T22:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way in JMP16 to provide a user-defined reference distribution for a one-sample KS test?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-way-in-JMP16-to-provide-a-user-defined-reference/m-p/451774#M69849</link>
      <description>&lt;P&gt;You can add the normal data to the data table as a new column, and then simply stack the data and run the Oneway platform.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt &amp;lt;&amp;lt; New Column( "Normal",
	formula( Random Normal( Col Mean( :height ), Col Std Dev( :height ) ) )
);
dtStack = dt &amp;lt;&amp;lt; Stack(
	columns( :height, :Normal ),
	Source Label Column( "Label" ),
	Stacked Data Column( "Data" )
);
obj = dtStack &amp;lt;&amp;lt; Oneway( Y( :data ), X( :label ) );
obj &amp;lt;&amp;lt; Kolmogorov Smirnov Test( 1 );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 16 Jan 2022 02:03:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-way-in-JMP16-to-provide-a-user-defined-reference/m-p/451774#M69849</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-01-16T02:03:04Z</dc:date>
    </item>
  </channel>
</rss>

