<?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: Calculating median when comparing two continuous variables in a multivariate analysis in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Calculating-median-when-comparing-two-continuous-variables-in-a/m-p/428690#M67801</link>
    <description>&lt;P&gt;Thank you! Though one question, maybe I missed out that part: Where can I find the overall median for dose and level (for each male and female as a whole) in this interface?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Oct 2021 14:41:28 GMT</pubDate>
    <dc:creator>mmkaz</dc:creator>
    <dc:date>2021-10-20T14:41:28Z</dc:date>
    <item>
      <title>Calculating median when comparing two continuous variables in a multivariate analysis</title>
      <link>https://community.jmp.com/t5/Discussions/Calculating-median-when-comparing-two-continuous-variables-in-a/m-p/427631#M67714</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN style="font-family: inherit;"&gt;&lt;BR /&gt;Dear JMP Board,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;I am currently working on a biomedical dataset comparing doses and blood levels of four different medication. My PI instructed me in short to compare the data for each blood level and dose across different subgroups (male, female; pre-, post-pubescent etc.). Practically spoken he told me to use a multivariate analysis to calculate a p vale within groups (Y = Dose + blood level data by medicaments and e.g. sex or ethnicity or age). To calculate p value within groups I used a standard Spearmans test. Additionally to that, he asked me to calculate each the median for dose and blood level but both of us didn't really know how... All I found so far was a way to calculate a mean value for each when using a multivariate analysis.&amp;nbsp; So we both thought it might be best to ask people who are more acquainted with JMP and thus I am reaching out to anyone who might know better.&lt;BR /&gt;Thanks for any help, much appreciated!&amp;nbsp;&lt;BR /&gt;I am currently using macOS Big Sur 11.6 and JMP version 16.0.0.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 18 Oct 2021 13:06:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Calculating-median-when-comparing-two-continuous-variables-in-a/m-p/427631#M67714</guid>
      <dc:creator>mmkaz</dc:creator>
      <dc:date>2021-10-18T13:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating median when comparing two continuous variables in a multivariate analysis</title>
      <link>https://community.jmp.com/t5/Discussions/Calculating-median-when-comparing-two-continuous-variables-in-a/m-p/427791#M67723</link>
      <description>&lt;P&gt;I read through this a few times now and I am struggling to understand what you are trying to do. Calculating a mean and median in the context of a multivariate analysis doesn't really make sense to me.&amp;nbsp; The distribution platform would help you calculate medians and means and in tabulate you could group these different ways.&amp;nbsp; Are you perhaps trying to find the residual of a value after accounting for the effect or correlation of other variables?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An example might help.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 15:37:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Calculating-median-when-comparing-two-continuous-variables-in-a/m-p/427791#M67723</guid>
      <dc:creator>ih</dc:creator>
      <dc:date>2021-10-18T15:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating median when comparing two continuous variables in a multivariate analysis</title>
      <link>https://community.jmp.com/t5/Discussions/Calculating-median-when-comparing-two-continuous-variables-in-a/m-p/427847#M67731</link>
      <description>&lt;P&gt;I warn against analyzing sub-groups of data in such a case. You dramatically weaken the power of any hypothesis tests. You are also likely to miss effects such as interactions that might be important.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, non-parametric tests have less power than parametric tests when the assumptions of the parametric test hold.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest that you try modeling the mean response using multiple regression and then analyze the residuals to assess how well the data meet the assumptions of regression. You model might by blood level = intercept + dose + sex + age + ... + dose*sex + dose*age + ... and model all the data together.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See &lt;A href="https://www.jmp.com/support/help/en/16.1/#page/jmp/model-specification.shtml" target="_self"&gt;this chapter&lt;/A&gt; in the JMP Help for more information and examples.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 17:09:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Calculating-median-when-comparing-two-continuous-variables-in-a/m-p/427847#M67731</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2021-10-18T17:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating median when comparing two continuous variables in a multivariate analysis</title>
      <link>https://community.jmp.com/t5/Discussions/Calculating-median-when-comparing-two-continuous-variables-in-a/m-p/428486#M67780</link>
      <description>&lt;P&gt;I am being honest with you, I cannot really say neither. As I said I am mostly working according to what my PI instructs me to do. But I can post a screenshot of the table I was asked to work on.&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bildschirmfoto 2021-10-20 um 10.48.30.png" style="width: 430px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/36848i7DAAEEF9632D5873/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bildschirmfoto 2021-10-20 um 10.48.30.png" alt="Bildschirmfoto 2021-10-20 um 10.48.30.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Basically I use a multivariate analysis to calculate the correlation coefficient and p-value within group via Spearmans.&amp;nbsp;And the question is how to calculate "mean dose" and "mean blood level".&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bildschirmfoto 2021-10-20 um 10.57.51.png" style="width: 408px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/36849i2F70C5C849F5F6B3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bildschirmfoto 2021-10-20 um 10.57.51.png" alt="Bildschirmfoto 2021-10-20 um 10.57.51.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Y --&amp;gt; 1) med level 2) med dose&amp;nbsp;&lt;BR /&gt;By --&amp;gt; a) list of meds b) e.g. sex&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bildschirmfoto 2021-10-20 um 11.09.06.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/36850iAD214AD710DC9AB9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bildschirmfoto 2021-10-20 um 11.09.06.png" alt="Bildschirmfoto 2021-10-20 um 11.09.06.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and I was looking for a way to find a median here in the list of commands. Since you can access the mean value via "simple statistics"&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I use Fit model to calculate p value across groups and y by x to for&lt;BR /&gt;"N" --&amp;gt;&amp;nbsp;*number of blood draws post-baseline with available information about antipsychotic dose and blood level (maximum 3 time points per patient, i.e. at week 4, 8 and 12).&lt;BR /&gt;Thats all the information I can provide.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 09:16:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Calculating-median-when-comparing-two-continuous-variables-in-a/m-p/428486#M67780</guid>
      <dc:creator>mmkaz</dc:creator>
      <dc:date>2021-10-20T09:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating median when comparing two continuous variables in a multivariate analysis</title>
      <link>https://community.jmp.com/t5/Discussions/Calculating-median-when-comparing-two-continuous-variables-in-a/m-p/428492#M67781</link>
      <description>&lt;P&gt;&lt;STRIKE&gt;And the question is how to calculate "mean dose" and "mean blood level".&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRIKE&gt;I meant "and the question is how to calculate "median dose" and "median blood level".&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 09:35:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Calculating-median-when-comparing-two-continuous-variables-in-a/m-p/428492#M67781</guid>
      <dc:creator>mmkaz</dc:creator>
      <dc:date>2021-10-20T09:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating median when comparing two continuous variables in a multivariate analysis</title>
      <link>https://community.jmp.com/t5/Discussions/Calculating-median-when-comparing-two-continuous-variables-in-a/m-p/428570#M67790</link>
      <description>&lt;P&gt;It seems you have found most of what you want and how to ask JMP for it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for the median levels, the Tabulate platform is a versatile summary tool. Select Analyze &amp;gt; Tabulate to start. It is a drag and drop tool. Variables are used to group data or to analyze. I opened the &lt;STRONG&gt;Big Class&lt;/STRONG&gt; data table in the Sample Data folder to use &lt;STRONG&gt;height&lt;/STRONG&gt; and &lt;STRONG&gt;weight&lt;/STRONG&gt; instead of your actual Dose and Blood Level variables. I used &lt;STRONG&gt;age&lt;/STRONG&gt; and &lt;STRONG&gt;sex&lt;/STRONG&gt; as grouping variables. Here is the data table:&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="table.PNG" style="width: 781px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/36856i6FB97AEB62939CB7/image-size/large?v=v2&amp;amp;px=999" role="button" title="table.PNG" alt="table.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the result in Tabulate:&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="tabulate.PNG" style="width: 499px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/36857i0F4CCE9C2D3C6641/image-size/large?v=v2&amp;amp;px=999" role="button" title="tabulate.PNG" alt="tabulate.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can learn how to use Tabulate in &lt;A href="https://www.jmp.com/support/help/en/16.1/#page/jmp/tabulate.shtml#" target="_self"&gt;this chapter&lt;/A&gt; from the JMP Help. I hope that this reply helps with your remaining questions!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 12:29:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Calculating-median-when-comparing-two-continuous-variables-in-a/m-p/428570#M67790</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2021-10-20T12:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating median when comparing two continuous variables in a multivariate analysis</title>
      <link>https://community.jmp.com/t5/Discussions/Calculating-median-when-comparing-two-continuous-variables-in-a/m-p/428690#M67801</link>
      <description>&lt;P&gt;Thank you! Though one question, maybe I missed out that part: Where can I find the overall median for dose and level (for each male and female as a whole) in this interface?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 14:41:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Calculating-median-when-comparing-two-continuous-variables-in-a/m-p/428690#M67801</guid>
      <dc:creator>mmkaz</dc:creator>
      <dc:date>2021-10-20T14:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating median when comparing two continuous variables in a multivariate analysis</title>
      <link>https://community.jmp.com/t5/Discussions/Calculating-median-when-comparing-two-continuous-variables-in-a/m-p/428732#M67808</link>
      <description>&lt;P&gt;Select the Add Aggregate Statistics option near the bottom on the left side:&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="tab.PNG" style="width: 557px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/36866iB24488E2327B3C3D/image-size/large?v=v2&amp;amp;px=999" role="button" title="tab.PNG" alt="tab.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 15:53:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Calculating-median-when-comparing-two-continuous-variables-in-a/m-p/428732#M67808</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2021-10-20T15:53:14Z</dc:date>
    </item>
  </channel>
</rss>

