<?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: Test of agreement for presence/absence by month in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Test-of-agreement-for-presence-absence-by-month/m-p/54441#M30767</link>
    <description>&lt;P&gt;Mark,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried running the CMH test with parasite and lesion as X and Y stratified by month.&amp;nbsp; Correlation scores are blank in the results box followed by a message that the statistic was not computed as the covariance matrix was singular.&amp;nbsp; What does that mean?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 04 Apr 2018 13:32:32 GMT</pubDate>
    <dc:creator>fishguy</dc:creator>
    <dc:date>2018-04-04T13:32:32Z</dc:date>
    <item>
      <title>Test of agreement for presence/absence by month</title>
      <link>https://community.jmp.com/t5/Discussions/Test-of-agreement-for-presence-absence-by-month/m-p/54294#M30681</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I collected data on the monthly occurrence&amp;nbsp;of a parasite and the monthly occurrence&amp;nbsp;of a histological lesion in the tissues where the parasite infects.&amp;nbsp; The parasite is strongly seasonal&amp;nbsp;- peak prevalence and intensities occur in March and April.&amp;nbsp; The lesions are more spread out throughout the year but appear to be more common in those months.&amp;nbsp; So for each (lesion or parasite), I can construct a contingency table (2x12) to demonstrate the months where the prevalence of lesions and parasites are highest.&amp;nbsp; What I would like to do is test how closely the parasites and lesions agree.&amp;nbsp; Is there a test&amp;nbsp;of&amp;nbsp;agreement to compare monthly lesion and parasite prevalence?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can disregard month and construct a contingency table of parasite and lesion.&amp;nbsp; The results show a Kappa of 0.0248 with a P = 0.5804.&amp;nbsp; Also, Bowker's test for symmetry (greater than 2x2 contingency table) indicates symmetry of disagreement chisq&amp;nbsp;=22.6, P &amp;lt;0.001.&amp;nbsp; I would take these&amp;nbsp;results that there is no strong measure of agreement between the lesion and parasite overall.&amp;nbsp; However, this doesn't account for month.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Apr 2018 16:57:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Test-of-agreement-for-presence-absence-by-month/m-p/54294#M30681</guid>
      <dc:creator>fishguy</dc:creator>
      <dc:date>2018-04-02T16:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Test of agreement for presence/absence by month</title>
      <link>https://community.jmp.com/t5/Discussions/Test-of-agreement-for-presence-absence-by-month/m-p/54300#M30684</link>
      <description>&lt;P&gt;Agreement is for Y and X with the same scale. Your description mentions counts (lesions, parasites) but not the scales used for either one.&lt;/P&gt;
&lt;P&gt;Association is more general. You could stratefy your contingency table by Month. One of the CMH tests should cover your hypothesis.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Apr 2018 17:11:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Test-of-agreement-for-presence-absence-by-month/m-p/54300#M30684</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2018-04-02T17:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Test of agreement for presence/absence by month</title>
      <link>https://community.jmp.com/t5/Discussions/Test-of-agreement-for-presence-absence-by-month/m-p/54302#M30686</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I recorded parasite and lesion presence or absence for each fish. The&lt;BR /&gt;monthly proportion of fish with each ranges from low teens to 100% so If I&lt;BR /&gt;understand correctly, they are both on the same scale&lt;BR /&gt;&lt;BR /&gt;What are CMH tests and how do I stratify by month.&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;Mark&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Apr 2018 17:31:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Test-of-agreement-for-presence-absence-by-month/m-p/54302#M30686</guid>
      <dc:creator>fishguy</dc:creator>
      <dc:date>2018-04-02T17:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Test of agreement for presence/absence by month</title>
      <link>https://community.jmp.com/t5/Discussions/Test-of-agreement-for-presence-absence-by-month/m-p/54308#M30690</link>
      <description>&lt;P&gt;Ok, I think it is the Cochran Mantel Haenzsel test you're referring too.&amp;nbsp; I found an example and understand how to run it now.&amp;nbsp; So I chose the presence/absence of lesion and parasite as the X and Y and then&amp;nbsp;in the pop-up window chose month as the grouping variable.&amp;nbsp; Is the default that the null hypothesis is no correlation between parasite and lesion?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 02 Apr 2018 18:19:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Test-of-agreement-for-presence-absence-by-month/m-p/54308#M30690</guid>
      <dc:creator>fishguy</dc:creator>
      <dc:date>2018-04-02T18:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Test of agreement for presence/absence by month</title>
      <link>https://community.jmp.com/t5/Discussions/Test-of-agreement-for-presence-absence-by-month/m-p/54313#M30692</link>
      <description>&lt;P&gt;You are way ahead of me! Yes, the null is no association. You test the overall association (unstratified)&amp;nbsp;first with the Contingency platform, then select CMH from the red triangle for stratification by Month.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Apr 2018 19:25:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Test-of-agreement-for-presence-absence-by-month/m-p/54313#M30692</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2018-04-02T19:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: Test of agreement for presence/absence by month</title>
      <link>https://community.jmp.com/t5/Discussions/Test-of-agreement-for-presence-absence-by-month/m-p/54441#M30767</link>
      <description>&lt;P&gt;Mark,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried running the CMH test with parasite and lesion as X and Y stratified by month.&amp;nbsp; Correlation scores are blank in the results box followed by a message that the statistic was not computed as the covariance matrix was singular.&amp;nbsp; What does that mean?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 13:32:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Test-of-agreement-for-presence-absence-by-month/m-p/54441#M30767</guid>
      <dc:creator>fishguy</dc:creator>
      <dc:date>2018-04-04T13:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Test of agreement for presence/absence by month</title>
      <link>https://community.jmp.com/t5/Discussions/Test-of-agreement-for-presence-absence-by-month/m-p/54442#M30768</link>
      <description>&lt;P&gt;Mark,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have another question or 2.&amp;nbsp; I also ran general agreement statistics between the parasite and lesion, ignoring month.&amp;nbsp; The Kappa score was high (0.66) and was significant P&amp;lt;0.001.&amp;nbsp; Bowker's test was also significant chisq&amp;nbsp;5.4, P=0.196.&amp;nbsp; Does Bowker's test confirm the Kappa?&amp;nbsp; I'm not sure how to take Bowker's result as it seems like it is testing disagreement rather than agreement.&amp;nbsp; Can you explain?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, after thinking about this a bit, I don't know that it matters that I include month in the analysis.&amp;nbsp; Perhaps Kappa and Bowker's would be sufficient.&amp;nbsp; However, I would like to understand if the CMH test provides any additional useful information beyond Kappa and Bowkers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 13:46:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Test-of-agreement-for-presence-absence-by-month/m-p/54442#M30768</guid>
      <dc:creator>fishguy</dc:creator>
      <dc:date>2018-04-04T13:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: Test of agreement for presence/absence by month</title>
      <link>https://community.jmp.com/t5/Discussions/Test-of-agreement-for-presence-absence-by-month/m-p/54528#M30833</link>
      <description>&lt;P&gt;Singularity usually means that the model behind this test is over-specified. It would be like including a quadratic term in the linear predictor when the X variable has only two levels. Such data does not support estimating the model. Can you post the Contingency platform with your data before and after applying the CMH tests?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 11:12:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Test-of-agreement-for-presence-absence-by-month/m-p/54528#M30833</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2018-04-06T11:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: Test of agreement for presence/absence by month</title>
      <link>https://community.jmp.com/t5/Discussions/Test-of-agreement-for-presence-absence-by-month/m-p/54529#M30834</link>
      <description>&lt;P&gt;Kappa measures &lt;EM&gt;agreement&lt;/EM&gt; between raters or ratings. For McNemar's / Bowker's test of &lt;EM&gt;symmetry&lt;/EM&gt;, the null hypothesis is that the probabilities in the square table satisfy symmetry or that &lt;SPAN class="mathfont"&gt;&lt;I&gt;p&lt;/I&gt;&lt;SUB&gt;&lt;I&gt;&lt;FONT size="2"&gt;ij&lt;/FONT&gt;&lt;/I&gt;&lt;/SUB&gt; = &lt;I&gt;p&lt;/I&gt;&lt;SUB&gt;&lt;I&gt;&lt;FONT size="2"&gt;ji&lt;/FONT&gt;&lt;/I&gt;&lt;/SUB&gt;&lt;/SPAN&gt; for all pairs of table cells.&lt;/P&gt;
&lt;P&gt;The CMH tests are about &lt;EM&gt;association&lt;/EM&gt; and the choice among the four alternatives depends on the modeling type of the X and Y variables. From JMP Help:&lt;/P&gt;
&lt;UL&gt;
&lt;LI class="body" id="ww193785"&gt;The Cochran-Mantel-Haenszel test discovers if there is a relationship between two categorical variables after blocking across a third classification.&lt;/LI&gt;
&lt;LI class="defTerm" id="ww493394"&gt;Correlation of Scores: Applicable when both Y or X are ordinal or interval. The alternative hypothesis is that there is a linear association between Y and X in at least one level of the blocking variable.&lt;/LI&gt;
&lt;LI class="defTerm" id="ww493398"&gt;Row Score by Col Categories: Applicable when Y is ordinal or interval. The alternative hypothesis is that, for at least one level of the blocking variable, the mean scores of the &lt;SPAN class="EquationVariables"&gt;r&lt;/SPAN&gt; rows are unequal.&lt;/LI&gt;
&lt;LI class="defTerm" id="ww493402"&gt;Col Score by Row Categories: Applicable when X is ordinal or interval. The alternative hypothesis is that, for at least one level of the blocking variable, the mean scores of the &lt;SPAN class="EquationVariables"&gt;c&lt;/SPAN&gt; columns are unequal.&lt;/LI&gt;
&lt;LI class="defTerm" id="ww493406"&gt;General Assoc. of Categories: Tests that for at least one level of the blocking variable, there is some type of association between X and Y.&lt;/LI&gt;
&lt;/UL&gt;
&lt;DIV class="defTerm"&gt;The test statistic is essentially&amp;nbsp;computed for each stratum and combined into the overall test statistic.&lt;/DIV&gt;</description>
      <pubDate>Fri, 06 Apr 2018 11:25:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Test-of-agreement-for-presence-absence-by-month/m-p/54529#M30834</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2018-04-06T11:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Test of agreement for presence/absence by month</title>
      <link>https://community.jmp.com/t5/Discussions/Test-of-agreement-for-presence-absence-by-month/m-p/54536#M30838</link>
      <description>&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="Screenshot 2018-04-06 08.27.59.png" style="width: 487px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/10233iFE9F389ECB5C9ACE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2018-04-06 08.27.59.png" alt="Screenshot 2018-04-06 08.27.59.png" /&gt;&lt;/span&gt;&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="Screenshot 2018-04-06 08.30.12.png" style="width: 485px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/10234iB18E8CEEE40F10A8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2018-04-06 08.30.12.png" alt="Screenshot 2018-04-06 08.30.12.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the contingency table and CMH results.&amp;nbsp; I set lesion and parasite presence/absence as ordinal and it worked.&amp;nbsp; I stratified by month.&amp;nbsp; I think I had my columns set as nominal previously.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe the null hypothesis is that there is no association between lesions and parasites.&amp;nbsp; Therefore it looks like I have a highly significant association between them.&amp;nbsp; So what I'm wondering is what added information does the CMH and stratification provide above that of the standard ChiSquare?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 12:48:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Test-of-agreement-for-presence-absence-by-month/m-p/54536#M30838</guid>
      <dc:creator>fishguy</dc:creator>
      <dc:date>2018-04-06T12:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: Test of agreement for presence/absence by month</title>
      <link>https://community.jmp.com/t5/Discussions/Test-of-agreement-for-presence-absence-by-month/m-p/54542#M30841</link>
      <description>&lt;P&gt;I don't believe that using the nominal modeling type would cause a singularity in the CMH tests, especially since you have only two levels for X and for Y.&lt;/P&gt;
&lt;P&gt;Yes, the null hypothesis is no association between X and Y.&lt;/P&gt;
&lt;P&gt;Yes, the unstratified contingency analysis is highly significant (LRT chi square &amp;gt; 65, p-value &amp;lt; 0.0001). (Note that chi square cannot be used to assess the strength of the association, only its significance.)&lt;/P&gt;
&lt;P&gt;Yes, the&amp;nbsp;relevant CMH test (General Association of Categories) is highly significant (chi square &amp;gt; 40, p-value &amp;lt; 0.0001). The stratification helps assure that the association is consistently present across the strata, if that question must be answered. The CMH test also somewhat relaxes the sample size requirement for the chi square statistic, which is not an issue in this case. (No more than 20% of cells with expected count less than 5.)&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 14:19:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Test-of-agreement-for-presence-absence-by-month/m-p/54542#M30841</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2018-04-06T14:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Test of agreement for presence/absence by month</title>
      <link>https://community.jmp.com/t5/Discussions/Test-of-agreement-for-presence-absence-by-month/m-p/54551#M30847</link>
      <description>&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 15:35:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Test-of-agreement-for-presence-absence-by-month/m-p/54551#M30847</guid>
      <dc:creator>fishguy</dc:creator>
      <dc:date>2018-04-06T15:35:02Z</dc:date>
    </item>
  </channel>
</rss>

