<?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 overlay 2 CDF curves into one single plot using JSL script? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-overlay-2-CDF-curves-into-one-single-plot-using-JSL/m-p/247203#M48520</link>
    <description>&lt;P&gt;These plots are also available in Life Distribution using the Compare Groups tab in the launch diagram. Here is the same example as&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;used. The weight variable is not time-to-event, but you can still fit a variety of distribution models including the normal distribution used here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 654px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/21713i12BB8CFD6A81F5A5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Feb 2020 12:29:26 GMT</pubDate>
    <dc:creator>Mark_Bailey</dc:creator>
    <dc:date>2020-02-12T12:29:26Z</dc:date>
    <item>
      <title>How to overlay 2 CDF curves into one single plot using JSL script?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-overlay-2-CDF-curves-into-one-single-plot-using-JSL/m-p/247073#M48506</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to put more than one CDF plot in to a single curve.&amp;nbsp; I can do it under distribution/cdf tool to get a CDF curve, then by manually copy and paste the frame content from one to another curve.&amp;nbsp; Is there a way that I can do it using script?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kelvin&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 00:26:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-overlay-2-CDF-curves-into-one-single-plot-using-JSL/m-p/247073#M48506</guid>
      <dc:creator>Kelvin</dc:creator>
      <dc:date>2020-02-12T00:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to overlay 2 CDF curves into one single plot using JSL script?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-overlay-2-CDF-curves-into-one-single-plot-using-JSL/m-p/247101#M48512</link>
      <description>&lt;P&gt;The way I believe you want to go, is to use Fit Y by X, Oneway, and specifying the CDF plot there.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cdf.PNG" style="width: 459px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/21709i4C139A4D384FF6C0/image-size/large?v=v2&amp;amp;px=999" role="button" title="cdf.PNG" alt="cdf.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In the above example, the Variable Sex is used as the X Factor, and Height as the Y.&amp;nbsp; If you need to plot two or more separate columns, then the approach you can take is to simply stack the columns using&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; Tables=&amp;gt;Stack&lt;/P&gt;
&lt;P&gt;and then use the Label variable as the X Factor, and the Data Column as the Y.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cdf2.PNG" style="width: 491px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/21710i8552E972B8AADD67/image-size/large?v=v2&amp;amp;px=999" role="button" title="cdf2.PNG" alt="cdf2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here is the sample script for the latter:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/big class.jmp" );

dtStack = dt &amp;lt;&amp;lt; Stack(
	columns( :height, :weight ),
	Source Label Column( "Label" ),
	Stacked Data Column( "Data" )
);

dtStack &amp;lt;&amp;lt; Oneway( Y( :Data ), X( :Label ), All Graphs( 0 ), CDF Plot( 1 ) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Feb 2020 03:30:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-overlay-2-CDF-curves-into-one-single-plot-using-JSL/m-p/247101#M48512</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-02-12T03:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to overlay 2 CDF curves into one single plot using JSL script?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-overlay-2-CDF-curves-into-one-single-plot-using-JSL/m-p/247203#M48520</link>
      <description>&lt;P&gt;These plots are also available in Life Distribution using the Compare Groups tab in the launch diagram. Here is the same example as&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;used. The weight variable is not time-to-event, but you can still fit a variety of distribution models including the normal distribution used here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 654px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/21713i12BB8CFD6A81F5A5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 12:29:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-overlay-2-CDF-curves-into-one-single-plot-using-JSL/m-p/247203#M48520</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2020-02-12T12:29:26Z</dc:date>
    </item>
  </channel>
</rss>

