<?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: Association between nominal variable and ordinal variable in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Association-between-nominal-variable-and-ordinal-variable/m-p/981737#M49159</link>
    <description>You could, but that assumes that the ordinal variables are crudely measured normally-distributed variables. If both are ordinal, you could use the first CMH statistic, or several of the statistics from the MEASURES option, or again, the logistic model. For an ordinal response and continuous predictor, use the logistic model.</description>
    <pubDate>Thu, 08 Jan 2026 23:39:06 GMT</pubDate>
    <dc:creator>StatDave</dc:creator>
    <dc:date>2026-01-08T23:39:06Z</dc:date>
    <item>
      <title>Association between nominal variable and ordinal variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Association-between-nominal-variable-and-ordinal-variable/m-p/981729#M49153</link>
      <description>&lt;P&gt;Dear SAS Community,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to know if there is an association between a nominal variable 'Ethnicity' (8 unordered levels) and an ordinal variable 'Overall1 ' (9 ordered levels) which means overall acceptance. In other words, if there is an influence of the Ethnicity of the consumer in the overall acceptance of the fruit that is presented to the consumer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I try proc freq with the chisq option I get the following table:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc freq data=one; &lt;BR /&gt;tables Ethnicity*Overall1 /chisq; &lt;BR /&gt;run;&lt;/P&gt;
&lt;DIV class="branch"&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;
&lt;TABLE class="table" summary="Procedure Freq: Chi-Square Tests" frame="box" rules="all" cellspacing="0" cellpadding="5"&gt;&lt;COLGROUP&gt; &lt;COL /&gt;&lt;/COLGROUP&gt; &lt;COLGROUP&gt; &lt;COL /&gt; &lt;COL /&gt; &lt;COL /&gt;&lt;/COLGROUP&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="l b header" scope="col"&gt;Statistic&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;DF&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Value&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Prob&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH class="l rowheader" scope="row"&gt;Chi-Square&lt;/TH&gt;
&lt;TD class="r data"&gt;40&lt;/TD&gt;
&lt;TD class="r data"&gt;48.3949&lt;/TD&gt;
&lt;TD class="r data"&gt;0.1702&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l rowheader" scope="row"&gt;Likelihood Ratio Chi-Square&lt;/TH&gt;
&lt;TD class="r data"&gt;40&lt;/TD&gt;
&lt;TD class="r data"&gt;50.1632&lt;/TD&gt;
&lt;TD class="r data"&gt;0.1302&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l rowheader" scope="row"&gt;Mantel-Haenszel Chi-Square&lt;/TH&gt;
&lt;TD class="r data"&gt;1&lt;/TD&gt;
&lt;TD class="r data"&gt;0.4461&lt;/TD&gt;
&lt;TD class="r data"&gt;0.5042&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l rowheader" scope="row"&gt;Phi Coefficient&lt;/TH&gt;
&lt;TD class="r data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="r data"&gt;0.1349&lt;/TD&gt;
&lt;TD class="r data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l rowheader" scope="row"&gt;Contingency Coefficient&lt;/TH&gt;
&lt;TD class="r data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="r data"&gt;0.1337&lt;/TD&gt;
&lt;TD class="r data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l rowheader" scope="row"&gt;Cramer's V&lt;/TH&gt;
&lt;TD class="r data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="r data"&gt;0.0603&lt;/TD&gt;
&lt;TD class="r data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;TFOOT&gt;
&lt;TR&gt;
&lt;TH class="c b footer" colspan="4"&gt;WARNING: 37% of the cells have expected counts less &lt;BR /&gt;than 5. Chi-Square may not be a valid test.&lt;/TH&gt;
&lt;/TR&gt;
&lt;/TFOOT&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which statistic test should I use to see if there is an association between these two variables?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would greatly appreciate your response!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jan 2026 21:48:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Association-between-nominal-variable-and-ordinal-variable/m-p/981729#M49153</guid>
      <dc:creator>palolix</dc:creator>
      <dc:date>2026-01-08T21:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: Association between nominal variable and ordinal variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Association-between-nominal-variable-and-ordinal-variable/m-p/981730#M49154</link>
      <description>&lt;P&gt;If the association you want to assess is, as you say, the effect of ethnicity, then a nonmodel-based approach would the 2nd CMH statistic from FREQ:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;proc freq; table ethnicity*overall1 / cmh; run;&lt;/P&gt;
&lt;P&gt;Or you could use a model-based approach - see the Type3 test of ethnicity:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;proc logistic; class ethnicity / param=glm; model overall1=ethnicity; run;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jan 2026 22:00:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Association-between-nominal-variable-and-ordinal-variable/m-p/981730#M49154</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2026-01-08T22:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Association between nominal variable and ordinal variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Association-between-nominal-variable-and-ordinal-variable/m-p/981731#M49155</link>
      <description>&lt;P&gt;You can run PROC TRANSREG with a model statement like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;MODEL MONOTONE(&lt;EM&gt;substitute your ordinal variable&lt;/EM&gt;) = CLASS(substitute your nominal variable) / TEST;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jan 2026 22:00:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Association-between-nominal-variable-and-ordinal-variable/m-p/981731#M49155</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2026-01-08T22:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: Association between nominal variable and ordinal variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Association-between-nominal-variable-and-ordinal-variable/m-p/981732#M49156</link>
      <description>&lt;P&gt;That was super helpful, thank you so much!&lt;/P&gt;
&lt;P&gt;So with the second statistic you mean I should use the Row mean scores differ (0.7198)? I thought I should use the general association (0.1707).&lt;/P&gt;
&lt;DIV class="branch"&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;
&lt;TABLE class="table" summary="Procedure Freq: Cochran-Mantel-Haenszel Statistics" frame="box" rules="all" cellspacing="0" cellpadding="5"&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="c b header" colspan="5" scope="colgroup"&gt;Cochran-Mantel-Haenszel&amp;nbsp;Statistics&amp;nbsp;(Based&amp;nbsp;on&amp;nbsp;Table&amp;nbsp;Scores)&lt;/TH&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r b header" scope="col"&gt;Statistic&lt;/TH&gt;
&lt;TH class="l b header" scope="col"&gt;Alternative Hypothesis&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;DF&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Value&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Prob&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;1&lt;/TH&gt;
&lt;TH class="l rowheader" scope="row"&gt;Nonzero Correlation&lt;/TH&gt;
&lt;TD class="r data"&gt;1&lt;/TD&gt;
&lt;TD class="r data"&gt;0.4461&lt;/TD&gt;
&lt;TD class="r data"&gt;0.5042&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;2&lt;/TH&gt;
&lt;TH class="l rowheader" scope="row"&gt;Row Mean Scores Differ&lt;/TH&gt;
&lt;TD class="r data"&gt;5&lt;/TD&gt;
&lt;TD class="r data"&gt;2.8717&lt;/TD&gt;
&lt;TD class="r data"&gt;0.7198&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;3&lt;/TH&gt;
&lt;TH class="l rowheader" scope="row"&gt;General Association&lt;/TH&gt;
&lt;TD class="r data"&gt;40&lt;/TD&gt;
&lt;TD class="r data"&gt;48.3767&lt;/TD&gt;
&lt;TD class="r data"&gt;0.1707&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 08 Jan 2026 22:55:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Association-between-nominal-variable-and-ordinal-variable/m-p/981732#M49156</guid>
      <dc:creator>palolix</dc:creator>
      <dc:date>2026-01-08T22:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Association between nominal variable and ordinal variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Association-between-nominal-variable-and-ordinal-variable/m-p/981733#M49157</link>
      <description>If you want to assess the influence of ethnicity on overall1, then you are essentially asking if the row (ethnicity) means differ. A similar approach is taken by the logistic model I showed. The general association statistic would be more appropriate if both variables were nominal.</description>
      <pubDate>Thu, 08 Jan 2026 22:59:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Association-between-nominal-variable-and-ordinal-variable/m-p/981733#M49157</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2026-01-08T22:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Association between nominal variable and ordinal variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Association-between-nominal-variable-and-ordinal-variable/m-p/981736#M49158</link>
      <description>&lt;P&gt;ok, thank you! Good to know that in the case of two nominal variables (general association).&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What about two ordinal variables? Should I use plcorr?&lt;/P&gt;
&lt;P&gt;proc freq data=one;&lt;BR /&gt;tables Freq*Score/plcorr; &lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And if I want to see if there is an effect of a continuous variable in an ordinal variable should I use kendall?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jan 2026 23:30:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Association-between-nominal-variable-and-ordinal-variable/m-p/981736#M49158</guid>
      <dc:creator>palolix</dc:creator>
      <dc:date>2026-01-08T23:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Association between nominal variable and ordinal variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Association-between-nominal-variable-and-ordinal-variable/m-p/981737#M49159</link>
      <description>You could, but that assumes that the ordinal variables are crudely measured normally-distributed variables. If both are ordinal, you could use the first CMH statistic, or several of the statistics from the MEASURES option, or again, the logistic model. For an ordinal response and continuous predictor, use the logistic model.</description>
      <pubDate>Thu, 08 Jan 2026 23:39:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Association-between-nominal-variable-and-ordinal-variable/m-p/981737#M49159</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2026-01-08T23:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Association between nominal variable and ordinal variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Association-between-nominal-variable-and-ordinal-variable/m-p/981738#M49160</link>
      <description>&lt;P&gt;Good to know, thank you StatDave!&lt;/P&gt;
&lt;P&gt;If I try this proc logistic code to test the association between the continuous predictor and the ordinal response then I don't get the type 3 effect table. Am I missing something?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc logistic data=one; &lt;BR /&gt;model Overall1=DM; &lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jan 2026 00:18:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Association-between-nominal-variable-and-ordinal-variable/m-p/981738#M49160</guid>
      <dc:creator>palolix</dc:creator>
      <dc:date>2026-01-09T00:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Association between nominal variable and ordinal variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Association-between-nominal-variable-and-ordinal-variable/m-p/981739#M49161</link>
      <description>If your predictor is continuous and so don't have the CLASS statement, then you don't get a Type3 table - you just need the test of the variable in Maximum Likelihood Estimates table.</description>
      <pubDate>Fri, 09 Jan 2026 01:46:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Association-between-nominal-variable-and-ordinal-variable/m-p/981739#M49161</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2026-01-09T01:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: Association between nominal variable and ordinal variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Association-between-nominal-variable-and-ordinal-variable/m-p/981748#M49162</link>
      <description>&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2023/12/11/polychoric-correlation.html" target="_blank" rel="noopener"&gt;https://blogs.sas.com/content/iml/2023/12/11/polychoric-correlation.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And macro %magree might give you a hand.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/kb/25/006.html" target="_blank"&gt;https://support.sas.com/kb/25/006.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jan 2026 08:33:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Association-between-nominal-variable-and-ordinal-variable/m-p/981748#M49162</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2026-01-09T08:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Association between nominal variable and ordinal variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Association-between-nominal-variable-and-ordinal-variable/m-p/981786#M49163</link>
      <description>&lt;P&gt;Oh ok. Thank you so much StatDave for your great help on this!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jan 2026 22:58:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Association-between-nominal-variable-and-ordinal-variable/m-p/981786#M49163</guid>
      <dc:creator>palolix</dc:creator>
      <dc:date>2026-01-09T22:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Association between nominal variable and ordinal variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Association-between-nominal-variable-and-ordinal-variable/m-p/981787#M49164</link>
      <description>&lt;P&gt;Very useful, thank you very much!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jan 2026 22:59:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Association-between-nominal-variable-and-ordinal-variable/m-p/981787#M49164</guid>
      <dc:creator>palolix</dc:creator>
      <dc:date>2026-01-09T22:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Association between nominal variable and ordinal variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Association-between-nominal-variable-and-ordinal-variable/m-p/981788#M49165</link>
      <description>&lt;P&gt;Thanks for the info!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jan 2026 22:59:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Association-between-nominal-variable-and-ordinal-variable/m-p/981788#M49165</guid>
      <dc:creator>palolix</dc:creator>
      <dc:date>2026-01-09T22:59:51Z</dc:date>
    </item>
  </channel>
</rss>

