<?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 create a linear regression graph from this table? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-create-a-linear-regression-graph-from-this-table/m-p/809272#M98910</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/61727"&gt;@BigScientist&lt;/a&gt;&amp;nbsp;: Adding to&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp; suggestion, be careful here. The two drugs are not independent (requirement for 1-way ANOVA). i.e., Patient 1 took both, patient 2 took both, and patient three took both. So, it is&amp;nbsp; the within patient comparison that is appropriate here. This is a paired t-test.&amp;nbsp; &amp;nbsp;You can do this via Matched Pairs, or Fit Model. If your data is organized as above, the Fit Model with&amp;nbsp;&amp;nbsp;Result as "Y" and Patient and Drug as Model Effects will do the trick. And set Patient as Random (highlight Patient then click on Attribute and choose Random Effect).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Oct 2024 14:24:52 GMT</pubDate>
    <dc:creator>MRB3855</dc:creator>
    <dc:date>2024-10-30T14:24:52Z</dc:date>
    <item>
      <title>How to create a linear regression graph from this table?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-create-a-linear-regression-graph-from-this-table/m-p/809156#M98880</link>
      <description>&lt;P&gt;I have a table like this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Patient&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Drug&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Result&lt;/STRONG&gt;&lt;BR /&gt;Patient 1&amp;nbsp; &amp;nbsp; &amp;nbsp; Drug A&amp;nbsp; &amp;nbsp; &amp;nbsp; 15.0&lt;BR /&gt;Patient 1&amp;nbsp; &amp;nbsp; &amp;nbsp; Drug B&amp;nbsp; &amp;nbsp; &amp;nbsp; 5.2&lt;BR /&gt;Patient 2&amp;nbsp; &amp;nbsp; &amp;nbsp; Drug A&amp;nbsp; &amp;nbsp; &amp;nbsp; 13.1&lt;BR /&gt;Patient 2&amp;nbsp; &amp;nbsp; &amp;nbsp; Drug B&amp;nbsp; &amp;nbsp; &amp;nbsp; 6.0&lt;BR /&gt;Patient 3&amp;nbsp; &amp;nbsp; &amp;nbsp; Drug A&amp;nbsp; &amp;nbsp; &amp;nbsp; 14.5&lt;BR /&gt;Patient 3&amp;nbsp; &amp;nbsp; &amp;nbsp; Drug B&amp;nbsp; &amp;nbsp; &amp;nbsp; 5.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I basically want to create a linear regression between Drug A and Drug B using all my patient samples. My actual table is a bit more complicated - for example, I have some patients and drugs that I don't want to include. How do I set this graph up in JMP?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 22:34:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-create-a-linear-regression-graph-from-this-table/m-p/809156#M98880</guid>
      <dc:creator>BigScientist</dc:creator>
      <dc:date>2024-10-29T22:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a linear regression graph from this table?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-create-a-linear-regression-graph-from-this-table/m-p/809180#M98881</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_1-1730251317246.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/69643i9568C0A2D49E77F1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_1-1730251317246.png" alt="txnelson_1-1730251317246.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_2-1730251440124.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/69644iE583B846AA6AA0DE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_2-1730251440124.png" alt="txnelson_2-1730251440124.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Or you could use the Fit Y by X platform and compare the 2 drugs&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1730254773304.png" style="width: 342px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/69645iF353631EAEA045FB/image-dimensions/342x674?v=v2" width="342" height="674" role="button" title="txnelson_0-1730254773304.png" alt="txnelson_0-1730254773304.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;It is not possible to perform a linear regression on the data since there is not a defined numerical measurement used to define the difference between Drug 1 and Drug 2.&amp;nbsp; Some statistical camps might suggest setting drug A to 0 and drug B to 1, however I believe what you really want is to know if there is a statistical difference between the drugs.&amp;nbsp; The Oneway Analysis will show if there is a statistical difference.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 02:25:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-create-a-linear-regression-graph-from-this-table/m-p/809180#M98881</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-10-30T02:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a linear regression graph from this table?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-create-a-linear-regression-graph-from-this-table/m-p/809272#M98910</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/61727"&gt;@BigScientist&lt;/a&gt;&amp;nbsp;: Adding to&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp; suggestion, be careful here. The two drugs are not independent (requirement for 1-way ANOVA). i.e., Patient 1 took both, patient 2 took both, and patient three took both. So, it is&amp;nbsp; the within patient comparison that is appropriate here. This is a paired t-test.&amp;nbsp; &amp;nbsp;You can do this via Matched Pairs, or Fit Model. If your data is organized as above, the Fit Model with&amp;nbsp;&amp;nbsp;Result as "Y" and Patient and Drug as Model Effects will do the trick. And set Patient as Random (highlight Patient then click on Attribute and choose Random Effect).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 14:24:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-create-a-linear-regression-graph-from-this-table/m-p/809272#M98910</guid>
      <dc:creator>MRB3855</dc:creator>
      <dc:date>2024-10-30T14:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a linear regression graph from this table?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-create-a-linear-regression-graph-from-this-table/m-p/809294#M98911</link>
      <description>&lt;P&gt;These weren't the solutions I was looking for and I sincerely apologize for not being clearer. My issue was that I didn't know how to put split the numerical data and put each drug on the X and Y axis against each other...without manually copying the data to create a new table. My actual table comes from thousands of .csv files with hundreds of columns. I finally figured it out on my own, however.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see in my screenshots, all I needed to do was to use the Tables&amp;gt;Split function.&amp;nbsp;&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="screenshot0.jpg" style="width: 805px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/69682i8A9C6A56EA4CE18F/image-size/large?v=v2&amp;amp;px=999" role="button" title="screenshot0.jpg" alt="screenshot0.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="screenshot1.jpg" style="width: 945px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/69683i2DD313165C519D50/image-size/large?v=v2&amp;amp;px=999" role="button" title="screenshot1.jpg" alt="screenshot1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 15:42:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-create-a-linear-regression-graph-from-this-table/m-p/809294#M98911</guid>
      <dc:creator>BigScientist</dc:creator>
      <dc:date>2024-10-30T15:42:03Z</dc:date>
    </item>
  </channel>
</rss>

