<?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 Multinomial Ordinal Regression Custom Hypothesis Testing for Middle Group in Dependent Variable in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Multinomial-Ordinal-Regression-Custom-Hypothesis-Testing-for/m-p/957350#M47947</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am attempting to perform a multinomial logistic regression to predict a 3-level ordinal DV (Y = {0,1,2}) with a 3-level nominal IV (Y = {2,3,4}, but non-ordered). I would like to produce the following output:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Odds of "Yes vs. No" in being in category 2 in DV, when in category 2 in IV&lt;/P&gt;
&lt;P&gt;Odds of "Yes vs. No" in being in category 2 in DV, when in category 3 in IV&lt;/P&gt;
&lt;P&gt;Odds of "Yes vs. No" in being in category 2 in DV, when in category 4 in IV&lt;/P&gt;
&lt;P&gt;Ditto for above, but for category 1 in DV&lt;/P&gt;
&lt;P&gt;Ditto for above, but for category 0 in DV&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using PROC Surveylogistic, I have the following two blocks of code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Block 1:&lt;/P&gt;
&lt;P&gt;proc surveylogistic data=A&lt;BR /&gt;weight weight;&lt;BR /&gt;class X (ref = '4') / param = ref;&lt;BR /&gt;model Y(descending) = X;&lt;BR /&gt;estimate 'Odds of Y = 1 OR 2 due to X = 2' intercept 1 X 2 / CL EXP Category = '1';&lt;BR /&gt;estimate 'Odds of Y = 2 due to X = 2' intercept 1 X 2 / CL EXP Category = '2';&lt;/P&gt;
&lt;P&gt;estimate 'Odds of Y = 1 OR 2 due to X = 3' intercept 1 X 3 / CL EXP Category = '1';&lt;/P&gt;
&lt;P&gt;estimate 'Odds of Y = 2 due to X = 3' intercept 1 X 3 / CL EXP Category = '2';&lt;/P&gt;
&lt;P&gt;estimate 'Odds of Y = 1 OR 2 due to X = 4' intercept 1 X 4 / CL EXP Category = '1';&lt;/P&gt;
&lt;P&gt;estimate 'Odds of Y = 2 due to X = 4' intercept 1 X 4 / CL EXP Category = '2';&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Block 2:&lt;/P&gt;
&lt;P&gt;proc surveylogistic data=A&lt;BR /&gt;weight weight;&lt;BR /&gt;class X (ref = '4') / param = ref;&lt;BR /&gt;model Y= X;&lt;BR /&gt;estimate 'Odds of Y = 0 due to X = 2' intercept 1 X 2 / CL EXP Category = '0';&lt;BR /&gt;estimate 'Odds of Y = 0 due to X = 3' intercept 1 X 2 / CL EXP Category = '0';&lt;/P&gt;
&lt;P&gt;estimate 'Odds of Y = 0 due to X = 4' intercept 1 X 3 / CL EXP Category = '0';&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To my understanding, the above two procs give me the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp;Odds of "Yes vs. No" in being in category 2 in DV, when in category {2,3,4} in IV &amp;lt;- Block 1&lt;/P&gt;
&lt;P&gt;2. Odds of "Yes vs. No" in being in AT LEAST category 2 in DV (category 1 OR 2), when in category {2,3,4} in IV &amp;lt;- Block 1&lt;/P&gt;
&lt;P&gt;3. Odds of "Yes vs. No" in being in category 0 in DV, when in category {2,3,4} in IV &amp;lt;- Block 2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Question: How can I use Estimate statements to extract "Odds of 'Yes vs. No' in being in category 1 in DV when in category {2,3,4} in IV?" I am confused about how to obtain Odds Ratios for the middle category, given my understanding on how ordinal logistic regression custom hypothesis testing works using PROC Surveylogistic Estimate statements.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jan 2025 20:37:53 GMT</pubDate>
    <dc:creator>ROLuke91</dc:creator>
    <dc:date>2025-01-27T20:37:53Z</dc:date>
    <item>
      <title>Multinomial Ordinal Regression Custom Hypothesis Testing for Middle Group in Dependent Variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multinomial-Ordinal-Regression-Custom-Hypothesis-Testing-for/m-p/957350#M47947</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am attempting to perform a multinomial logistic regression to predict a 3-level ordinal DV (Y = {0,1,2}) with a 3-level nominal IV (Y = {2,3,4}, but non-ordered). I would like to produce the following output:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Odds of "Yes vs. No" in being in category 2 in DV, when in category 2 in IV&lt;/P&gt;
&lt;P&gt;Odds of "Yes vs. No" in being in category 2 in DV, when in category 3 in IV&lt;/P&gt;
&lt;P&gt;Odds of "Yes vs. No" in being in category 2 in DV, when in category 4 in IV&lt;/P&gt;
&lt;P&gt;Ditto for above, but for category 1 in DV&lt;/P&gt;
&lt;P&gt;Ditto for above, but for category 0 in DV&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using PROC Surveylogistic, I have the following two blocks of code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Block 1:&lt;/P&gt;
&lt;P&gt;proc surveylogistic data=A&lt;BR /&gt;weight weight;&lt;BR /&gt;class X (ref = '4') / param = ref;&lt;BR /&gt;model Y(descending) = X;&lt;BR /&gt;estimate 'Odds of Y = 1 OR 2 due to X = 2' intercept 1 X 2 / CL EXP Category = '1';&lt;BR /&gt;estimate 'Odds of Y = 2 due to X = 2' intercept 1 X 2 / CL EXP Category = '2';&lt;/P&gt;
&lt;P&gt;estimate 'Odds of Y = 1 OR 2 due to X = 3' intercept 1 X 3 / CL EXP Category = '1';&lt;/P&gt;
&lt;P&gt;estimate 'Odds of Y = 2 due to X = 3' intercept 1 X 3 / CL EXP Category = '2';&lt;/P&gt;
&lt;P&gt;estimate 'Odds of Y = 1 OR 2 due to X = 4' intercept 1 X 4 / CL EXP Category = '1';&lt;/P&gt;
&lt;P&gt;estimate 'Odds of Y = 2 due to X = 4' intercept 1 X 4 / CL EXP Category = '2';&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Block 2:&lt;/P&gt;
&lt;P&gt;proc surveylogistic data=A&lt;BR /&gt;weight weight;&lt;BR /&gt;class X (ref = '4') / param = ref;&lt;BR /&gt;model Y= X;&lt;BR /&gt;estimate 'Odds of Y = 0 due to X = 2' intercept 1 X 2 / CL EXP Category = '0';&lt;BR /&gt;estimate 'Odds of Y = 0 due to X = 3' intercept 1 X 2 / CL EXP Category = '0';&lt;/P&gt;
&lt;P&gt;estimate 'Odds of Y = 0 due to X = 4' intercept 1 X 3 / CL EXP Category = '0';&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To my understanding, the above two procs give me the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp;Odds of "Yes vs. No" in being in category 2 in DV, when in category {2,3,4} in IV &amp;lt;- Block 1&lt;/P&gt;
&lt;P&gt;2. Odds of "Yes vs. No" in being in AT LEAST category 2 in DV (category 1 OR 2), when in category {2,3,4} in IV &amp;lt;- Block 1&lt;/P&gt;
&lt;P&gt;3. Odds of "Yes vs. No" in being in category 0 in DV, when in category {2,3,4} in IV &amp;lt;- Block 2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Question: How can I use Estimate statements to extract "Odds of 'Yes vs. No' in being in category 1 in DV when in category {2,3,4} in IV?" I am confused about how to obtain Odds Ratios for the middle category, given my understanding on how ordinal logistic regression custom hypothesis testing works using PROC Surveylogistic Estimate statements.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 20:37:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multinomial-Ordinal-Regression-Custom-Hypothesis-Testing-for/m-p/957350#M47947</guid>
      <dc:creator>ROLuke91</dc:creator>
      <dc:date>2025-01-27T20:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: Multinomial Ordinal Regression Custom Hypothesis Testing for Middle Group in Dependent Variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multinomial-Ordinal-Regression-Custom-Hypothesis-Testing-for/m-p/957491#M47948</link>
      <description>&lt;P&gt;The odds of Y=2 given X=2 means Pr(Y=2)/Pr(Y=1 or 3) when X=2. I suspect this is not really what you want. I'm guessing what you want is an estimate of Pr(Y=2) given X=2 and similarly for the probabilities of the other Y levels at each X level. You could get that easily by using the PREDPROBS=INDIVIDUAL option in the OUTPUT statement. It provides the estimated probability of each response level for each observation. ESTIMATE statements with EXP will give you cumulative odds (such as Pr(Y=0)/Pr(Y=1 or 2) and Pr(Y=0 or 1)/Pr(Y=2)). In any case, the coefficients that you have following X in the ESTIMATE statements should be a list like 1 0 to select level 2 of X since X is categorical and has two estimated parameters. Add the E option so see the coefficients that are used to multiply the model parameters.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 18:29:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multinomial-Ordinal-Regression-Custom-Hypothesis-Testing-for/m-p/957491#M47948</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2025-01-28T18:29:19Z</dc:date>
    </item>
  </channel>
</rss>

