<?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 Predicted probabilities for mixed multinomial model in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Predicted-probabilities-for-mixed-multinomial-model/m-p/254780#M13448</link>
    <description>&lt;P&gt;I'm trying to create a mixed model with a multinomial outcome and a random effect. &amp;nbsp;I want to model the probability of a speech tag in a sentence coming at the beginning, middle, or end of a sentence, and I have a large sample of sentences. &amp;nbsp;The outcome can have three levels (beginning, middle, end), the only fixed effect is decade of publication, and I want to account for author as a random effect, since there are multiple sentences in the sample written by the same author.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to graph the predicted probability of each type of speech tag (beginning, middle, or end) by decade of publication. &amp;nbsp;I figured I could use LSMEANS to get the predicted probability of each outcome (beginning, middle, end). &amp;nbsp;But, I can't seem to figure out how to do this using SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've tried to use PROC LOGISTIC, PROC GENMOD, and PROC GLIMMIX. &amp;nbsp;PROC LOGISTIC won't take the random effect into account, but will give me the correct LSMEANS if I use link=glogit. &amp;nbsp;PROC GENMOD will account for the random effect but will not allow link=glogit, and I am not sure how to interpret the LSMEANS when link=cumlogit because the probabilities of the three outcomes do not add up to one. &amp;nbsp;PROC GLIMMIX won't allow LSMEANS for the multinomial distribution. &amp;nbsp;Attached are the codes I've tried. &amp;nbsp;Does anyone have any ideas?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12354i2A9A5F5599AC8C94/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Screen Shot 2016-03-05 at 4.12.45 PM.png" title="Screen Shot 2016-03-05 at 4.12.45 PM.png" /&gt;</description>
    <pubDate>Sun, 06 Mar 2016 02:43:03 GMT</pubDate>
    <dc:creator>sasrules</dc:creator>
    <dc:date>2016-03-06T02:43:03Z</dc:date>
    <item>
      <title>Predicted probabilities for mixed multinomial model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Predicted-probabilities-for-mixed-multinomial-model/m-p/254780#M13448</link>
      <description>&lt;P&gt;I'm trying to create a mixed model with a multinomial outcome and a random effect. &amp;nbsp;I want to model the probability of a speech tag in a sentence coming at the beginning, middle, or end of a sentence, and I have a large sample of sentences. &amp;nbsp;The outcome can have three levels (beginning, middle, end), the only fixed effect is decade of publication, and I want to account for author as a random effect, since there are multiple sentences in the sample written by the same author.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to graph the predicted probability of each type of speech tag (beginning, middle, or end) by decade of publication. &amp;nbsp;I figured I could use LSMEANS to get the predicted probability of each outcome (beginning, middle, end). &amp;nbsp;But, I can't seem to figure out how to do this using SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've tried to use PROC LOGISTIC, PROC GENMOD, and PROC GLIMMIX. &amp;nbsp;PROC LOGISTIC won't take the random effect into account, but will give me the correct LSMEANS if I use link=glogit. &amp;nbsp;PROC GENMOD will account for the random effect but will not allow link=glogit, and I am not sure how to interpret the LSMEANS when link=cumlogit because the probabilities of the three outcomes do not add up to one. &amp;nbsp;PROC GLIMMIX won't allow LSMEANS for the multinomial distribution. &amp;nbsp;Attached are the codes I've tried. &amp;nbsp;Does anyone have any ideas?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12354i2A9A5F5599AC8C94/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Screen Shot 2016-03-05 at 4.12.45 PM.png" title="Screen Shot 2016-03-05 at 4.12.45 PM.png" /&gt;</description>
      <pubDate>Sun, 06 Mar 2016 02:43:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Predicted-probabilities-for-mixed-multinomial-model/m-p/254780#M13448</guid>
      <dc:creator>sasrules</dc:creator>
      <dc:date>2016-03-06T02:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Predicted probabilities for mixed multinomial model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Predicted-probabilities-for-mixed-multinomial-model/m-p/260127#M13752</link>
      <description>&lt;P&gt;GLIMMIX is probably the way to proceed, but you will have to use the ESTIMATE statement to get your predicted probabilities. &amp;nbsp;See Example 45.13 in the SAS/STAT 14.1 documentation for an example of how to do this. &amp;nbsp;You'll have to adapt from a cumulative logit in the example to a generalized logit in your situation, and it requires the use of the %CONTRAST macro.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2016 14:55:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Predicted-probabilities-for-mixed-multinomial-model/m-p/260127#M13752</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2016-03-30T14:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Predicted probabilities for mixed multinomial model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Predicted-probabilities-for-mixed-multinomial-model/m-p/263085#M13885</link>
      <description>&lt;P&gt;Thank you so much for your help, Steve! &amp;nbsp;I had pretty much given up on being able to do this with SAS, but I'll take a look at the example you suggested.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2016 03:32:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Predicted-probabilities-for-mixed-multinomial-model/m-p/263085#M13885</guid>
      <dc:creator>sasrules</dc:creator>
      <dc:date>2016-04-12T03:32:06Z</dc:date>
    </item>
  </channel>
</rss>

