<?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: Multinomial Distribution using GLIMMIX in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Multinomial-Distribution-using-GLIMMIX/m-p/921150#M45772</link>
    <description>Thank you for your reply. The error I made was embarrasingly simple. I needed to sort the categorical responses within each of the levels of the CLASS variable. Bad oversight on my part.&lt;BR /&gt;</description>
    <pubDate>Wed, 20 Mar 2024 17:53:06 GMT</pubDate>
    <dc:creator>clg2</dc:creator>
    <dc:date>2024-03-20T17:53:06Z</dc:date>
    <item>
      <title>Multinomial Distribution using GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multinomial-Distribution-using-GLIMMIX/m-p/920515#M45721</link>
      <description>&lt;P&gt;I have a response variable with six categories, 1 - 6.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS Version: TS1M6&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am analyzing the data using GLIMMIX:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC GLIMMIX ;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CLASS rep group size ;&lt;/P&gt;&lt;P&gt;MODEL size = group / DIST=MULT ;&amp;nbsp;&lt;/P&gt;&lt;P&gt;RANDOM rep ;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OUTPUT OUT=new PRED(ILINK)=ps ;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SIZE has discrete values 1, 2, 3, 4, 5, 6.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I previously used this code, the new SAS DATA set would have _LEVEL_ to identify which of the six levels of the categorical response variable the predicted cumulative probabilIty (ps)&amp;nbsp; was associated with. Now, I am no longer getting the _LEVEL_ variable; just the observed value of SIZE.&amp;nbsp; I want to make certain I align the correct value of SIZE with its cumulative probability for each group value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any assistance would be appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;clg&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 20:30:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multinomial-Distribution-using-GLIMMIX/m-p/920515#M45721</guid>
      <dc:creator>clg2</dc:creator>
      <dc:date>2024-03-15T20:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: Multinomial Distribution using GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multinomial-Distribution-using-GLIMMIX/m-p/921087#M45761</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/382222"&gt;@clg2&lt;/a&gt;&amp;nbsp;and welcome to the SAS Support Communities (as a first-time poster)!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry to see that your post hasn't been answered yet. Not sure if I can be of much help, but running your code using my SAS 9.4M&lt;STRONG&gt;5&lt;/STRONG&gt; (SAS/STAT &lt;STRONG&gt;14.3&lt;/STRONG&gt;) and this very crude input dataset HAVE&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
call streaminit(27182818);
do i=1 to 100;
  group=rand('bern',0.5);
  rep=rand('bern',0.5);
  size=rand('integer',6);
  output;
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;creates a dataset NEW which does contain variable &lt;FONT face="courier new,courier"&gt;_LEVEL_&lt;/FONT&gt; with values 1 through 5 for each value of variable &lt;FONT face="courier new,courier"&gt;i&lt;/FONT&gt;, hence 500 observations in total. However, if I add the &lt;A href="https://documentation.sas.com/doc/de/pgmsascdc/9.4_3.4/statug/statug_glimmix_syntax19.htm#statug.glimmix.gmxoutobscat" target="_blank" rel="noopener"&gt;OBSCAT option&lt;/A&gt; to the OUTPUT statement&lt;/P&gt;
&lt;PRE&gt;OUTPUT OUT=new&lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/FONT&gt; PRED(ILINK)=ps&lt;FONT color="#3366FF"&gt;&lt;STRONG&gt; / obscat&lt;/STRONG&gt;&lt;/FONT&gt;;&lt;/PRE&gt;
&lt;P&gt;the output dataset NEW1 is only a subset of NEW: comprised of those 75 observations where&amp;nbsp;&lt;FONT face="courier new,courier"&gt;SIZE=_LEVEL_&lt;/FONT&gt;, and variable&amp;nbsp;&lt;FONT face="courier new,courier"&gt;_LEVEL_&lt;/FONT&gt; is omitted (as it would be redundant). This looks like what you describe.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As far as I see, the documentation of the OUTPUT statement has not changed between &lt;A href="https://documentation.sas.com/doc/de/pgmsascdc/9.4_3.3/statug/statug_glimmix_syntax19.htm" target="_blank" rel="noopener"&gt;SAS/STAT 14.3&lt;/A&gt; and &lt;A href="https://documentation.sas.com/doc/de/pgmsascdc/9.4_3.4/statug/statug_glimmix_syntax19.htm" target="_blank" rel="noopener"&gt;15.1&lt;/A&gt;. So I wouldn't know why your SAS 9.4M6 should work as if OBSCAT was the default. Do you get variable&amp;nbsp;&lt;FONT face="courier new,courier"&gt;_LEVEL_&lt;/FONT&gt; if you use the above HAVE dataset? If so, there might be a data-dependent issue and you may want to share a portion of your data (possibly with confidential values replaced with mock-up data).&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 11:35:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multinomial-Distribution-using-GLIMMIX/m-p/921087#M45761</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2024-03-20T11:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: Multinomial Distribution using GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multinomial-Distribution-using-GLIMMIX/m-p/921150#M45772</link>
      <description>Thank you for your reply. The error I made was embarrasingly simple. I needed to sort the categorical responses within each of the levels of the CLASS variable. Bad oversight on my part.&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Mar 2024 17:53:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multinomial-Distribution-using-GLIMMIX/m-p/921150#M45772</guid>
      <dc:creator>clg2</dc:creator>
      <dc:date>2024-03-20T17:53:06Z</dc:date>
    </item>
  </channel>
</rss>

