<?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: Trend test for multinomial variable in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Trend-test-for-multinomial-variable/m-p/938808#M46848</link>
    <description>&lt;P&gt;It sounds like you probably want to use the Jonckeere-Terspstra test in PROC FREQ. Use the JT option in the TABLES statement for your two-way table.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Aug 2024 17:10:40 GMT</pubDate>
    <dc:creator>StatDave</dc:creator>
    <dc:date>2024-08-09T17:10:40Z</dc:date>
    <item>
      <title>Trend test for multinomial variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Trend-test-for-multinomial-variable/m-p/938805#M46846</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which statistical test should be used to estimate a p-value for trend for a dependent variable (multinomial) with more than 2 levels and an ordered independent variable (categorical) with more than 2 levels.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Most of the help out there seems to suggest that the Cochran-Mantel-Haenszel test should be used. But, looks like&amp;nbsp;in the case of no adjustment for (categorical) confounders, the CMH test is not the correct one and multinomial logistic regression should be used. If so, how do I get a p-value for trend with 1 dependent and 1 independent variable as mentioned above. Any example code/reference is greatly appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2024 15:22:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Trend-test-for-multinomial-variable/m-p/938805#M46846</guid>
      <dc:creator>kc</dc:creator>
      <dc:date>2024-08-09T15:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Trend test for multinomial variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Trend-test-for-multinomial-variable/m-p/938808#M46848</link>
      <description>&lt;P&gt;It sounds like you probably want to use the Jonckeere-Terspstra test in PROC FREQ. Use the JT option in the TABLES statement for your two-way table.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2024 17:10:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Trend-test-for-multinomial-variable/m-p/938808#M46848</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2024-08-09T17:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Trend test for multinomial variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Trend-test-for-multinomial-variable/m-p/938828#M46850</link>
      <description>&lt;P&gt;Isn't&amp;nbsp;Jonckheere-Terpstra trend test used for continuous variables?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2024 19:13:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Trend-test-for-multinomial-variable/m-p/938828#M46850</guid>
      <dc:creator>kc</dc:creator>
      <dc:date>2024-08-09T19:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: Trend test for multinomial variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Trend-test-for-multinomial-variable/m-p/938836#M46851</link>
      <description>&lt;P&gt;See the &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_freq_details77.htm" target="_self"&gt;Details section on the JT test&lt;/A&gt;&amp;nbsp;in the PROC FREQ documentation. As stated there, "&lt;EM&gt;The Jonckheere-Terpstra test is appropriate for a two-way table in which an ordinal column variable represents the response. The row variable, which can be nominal or ordinal&lt;/EM&gt;".&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2024 20:15:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Trend-test-for-multinomial-variable/m-p/938836#M46851</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2024-08-09T20:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Trend test for multinomial variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Trend-test-for-multinomial-variable/m-p/939033#M46852</link>
      <description>&lt;P&gt;So, when the dependent variable is race (with 3 values: white; black; other) and the independent variable is BMI (3 categories: &amp;lt;30, 30-40, &amp;gt;=40), the following code should suffice? Meaning, the two-sided p-value from the Jonckheere-Terpstra Test in the SAS output should be used the p-value for trend?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=ds;
tables RACE*BMIGRP/jt;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Aug 2024 04:03:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Trend-test-for-multinomial-variable/m-p/939033#M46852</guid>
      <dc:creator>kc</dc:creator>
      <dc:date>2024-08-13T04:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Trend test for multinomial variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Trend-test-for-multinomial-variable/m-p/939037#M46853</link>
      <description>&lt;P&gt;Check its documentation example:&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="Ksharp_0-1723529127084.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/99206i2732600D3F8F67BE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1723529127084.png" alt="Ksharp_0-1723529127084.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 06:05:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Trend-test-for-multinomial-variable/m-p/939037#M46853</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-08-13T06:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Trend test for multinomial variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Trend-test-for-multinomial-variable/m-p/939055#M46854</link>
      <description>&lt;P&gt;I believe the Cohcran-Armitage trend test is used for binary variables.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 12:10:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Trend-test-for-multinomial-variable/m-p/939055#M46854</guid>
      <dc:creator>kc</dc:creator>
      <dc:date>2024-08-13T12:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Trend test for multinomial variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Trend-test-for-multinomial-variable/m-p/939080#M46855</link>
      <description>&lt;P&gt;As stated in the J-T test documentation, you will want to order the rows of your table (levels of RACE) to correspond with the way you&amp;nbsp; hypothesize the ordinal response (BMIGRP) to increase. For example, if you hypothesize that BMIGRP increases from white to black to other then you want the rows to be in that order. If it is a character variable, you might find it easiest to either recode it or create a new variable with&amp;nbsp; values 1, 2, 3 in the desired order. Of course, you should make sure that the response levels (BMIGRP) are arranged in increasing order across the columns (&amp;lt;30, 30-40, &amp;gt;40). Assuming that the data agree with that hypothesis, then the one-sided p-value tests the significance of that positive trend.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 15:25:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Trend-test-for-multinomial-variable/m-p/939080#M46855</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2024-08-13T15:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Trend test for multinomial variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Trend-test-for-multinomial-variable/m-p/939155#M46856</link>
      <description>Or you could try ANOVA by PROC GLM / PROC NPAR1WAY + wilcoxon option.&lt;BR /&gt;If there are significant difference between all two groups , there are a trend ?</description>
      <pubDate>Wed, 14 Aug 2024 00:51:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Trend-test-for-multinomial-variable/m-p/939155#M46856</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-08-14T00:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Trend test for multinomial variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Trend-test-for-multinomial-variable/m-p/939652#M46879</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt;&amp;nbsp;: Thank you for taking time to respond to my question. I will try the suggestion and report back.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2024 16:00:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Trend-test-for-multinomial-variable/m-p/939652#M46879</guid>
      <dc:creator>kc</dc:creator>
      <dc:date>2024-08-16T16:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: Trend test for multinomial variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Trend-test-for-multinomial-variable/m-p/939830#M46913</link>
      <description>&lt;P&gt;Since your data can be formed by contingency table,&lt;/P&gt;
&lt;P&gt;you can do ANOVA with RPOC CATMOD.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
 set sashelp.heart;
 r=mod(_n_,10)+1;
 keep bp_Status r;
run;

proc freq data=have;
table bp_Status*r/nocol norow nopercent;
run;

proc catmod data=have;
 response mean;
 model r= bp_Status;
quit;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 19 Aug 2024 08:26:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Trend-test-for-multinomial-variable/m-p/939830#M46913</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-08-19T08:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Trend test for multinomial variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Trend-test-for-multinomial-variable/m-p/941464#M47003</link>
      <description>&lt;P&gt;It appears that the score test from multinomial logistic regression can be used to test for trend between a multinomial variable and ordered categorical variable (when there is no adjustment for other categorical confounders). Also, if interested, take a look at the note from Frank Harrell here:&amp;nbsp;&lt;A href="https://stats.stackexchange.com/questions/570544/chi-square-test-vs-logistic-regression-result" target="_blank"&gt;chi square test vs logistic regression result - Cross Validated (stackexchange.com)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2024 15:25:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Trend-test-for-multinomial-variable/m-p/941464#M47003</guid>
      <dc:creator>kc</dc:creator>
      <dc:date>2024-08-28T15:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Trend test for multinomial variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Trend-test-for-multinomial-variable/m-p/945169#M47227</link>
      <description>&lt;A href="https://communities.sas.com/t5/Statistical-Procedures/Test-for-trend-using-median-values/m-p/306764" target="_blank"&gt;https://communities.sas.com/t5/Statistical-Procedures/Test-for-trend-using-median-values/m-p/306764&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://support.sas.com/kb/22/912.html" target="_blank"&gt;https://support.sas.com/kb/22/912.html&lt;/A&gt;</description>
      <pubDate>Wed, 25 Sep 2024 09:05:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Trend-test-for-multinomial-variable/m-p/945169#M47227</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-09-25T09:05:14Z</dc:date>
    </item>
  </channel>
</rss>

