<?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: G Matrix shows covariance of reference category for generalized logit in proc glimmix? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/G-Matrix-shows-covariance-of-reference-category-for-generalized/m-p/291679#M15519</link>
    <description>&lt;P&gt;Take a look at your design matrix.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Aug 2016 13:41:02 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-08-15T13:41:02Z</dc:date>
    <item>
      <title>G Matrix shows covariance of reference category for generalized logit in proc glimmix?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/G-Matrix-shows-covariance-of-reference-category-for-generalized/m-p/291666#M15518</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running a multinomial logistic regression for categorial unordered data (the outcome variable outcome has c=3 categories) with random effects in proc glimmix.&lt;/P&gt;&lt;P&gt;I was astonished to see that independent of the choice of the reference category the G Matrix always displays the covariance of the first two categories (with different values of course).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc glimmix data= data.out&amp;nbsp; method= quad;&lt;BR /&gt;class outcome predictor id;&lt;BR /&gt;model outcome(ref= first)= predictor/ dist=multinomial link=glogit s&amp;nbsp; cl corrb covb ;&lt;BR /&gt;random predictor /sub=id group=outcome G type=UN gcorr ; &amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;freq count;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;With ref= first, the estimated G Matrix looks like this&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; Effect&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Group&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; predictor&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Row&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Col1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Col2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Col3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Col4&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; predictor&amp;nbsp;&amp;nbsp;&amp;nbsp; outcome 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.5963&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.5751&lt;BR /&gt;&amp;nbsp; predictor&amp;nbsp;&amp;nbsp;&amp;nbsp; outcome 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.5751&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.1189&lt;BR /&gt;&amp;nbsp; predictor&amp;nbsp;&amp;nbsp;&amp;nbsp; outcome 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.4547&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -0.3464&lt;BR /&gt;&amp;nbsp; predictor&amp;nbsp;&amp;nbsp;&amp;nbsp; outcome 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -0.3464&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.4129&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; and with ref= last, I get following estimated G Matrix&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; Effect&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Group&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; predictor&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Row&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Col1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Col2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Col3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Col4&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; predictor&amp;nbsp;&amp;nbsp;&amp;nbsp; outcome 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.6290&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -0.4144&lt;BR /&gt;&amp;nbsp; predictor&amp;nbsp;&amp;nbsp;&amp;nbsp; outcome 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -0.4144&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.2730&lt;BR /&gt;&amp;nbsp; predictor&amp;nbsp;&amp;nbsp;&amp;nbsp; outcome 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.9821&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.7721&lt;BR /&gt;&amp;nbsp; predictor&amp;nbsp;&amp;nbsp;&amp;nbsp; outcome 2&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.7721&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.3127&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would have expected that the G Matrix only contains non-reference categories?&lt;/P&gt;&lt;P&gt;Do you have any clue why this happens ? In the attachment, you find the original data set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;ML&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2016 12:08:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/G-Matrix-shows-covariance-of-reference-category-for-generalized/m-p/291666#M15518</guid>
      <dc:creator>Maya1</dc:creator>
      <dc:date>2016-08-15T12:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: G Matrix shows covariance of reference category for generalized logit in proc glimmix?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/G-Matrix-shows-covariance-of-reference-category-for-generalized/m-p/291679#M15519</link>
      <description>&lt;P&gt;Take a look at your design matrix.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2016 13:41:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/G-Matrix-shows-covariance-of-reference-category-for-generalized/m-p/291679#M15519</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-08-15T13:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: G Matrix shows covariance of reference category for generalized logit in proc glimmix?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/G-Matrix-shows-covariance-of-reference-category-for-generalized/m-p/292071#M15555</link>
      <description>&lt;P&gt;The design matrix for the random effects consists of the predictor variable (binary variable) which is extended for the non-reference categories. Thus the G Matrix is a block diagonal matrix with 2 blocks (one for predictor=0 and one for predictor=1) and each block should show the variance/covariance among the non-reference categories. At least that's what I find in 'Applied mixed models in medicine' by Prescott and Brown. Thus, for ref= first (i.e. outcome=1) the G Matrix should only contain outcome=2 and outcome=3 within the blocks and for ref= last (i.e. outcome=3), each block should contain the covariance of the random variable for outcome=1 and outcome=2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could it be that the labels in the G Matrix are wrong? Or is there any other plausible explanation?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2016 06:44:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/G-Matrix-shows-covariance-of-reference-category-for-generalized/m-p/292071#M15555</guid>
      <dc:creator>Maya1</dc:creator>
      <dc:date>2016-08-17T06:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: G Matrix shows covariance of reference category for generalized logit in proc glimmix?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/G-Matrix-shows-covariance-of-reference-category-for-generalized/m-p/292078#M15556</link>
      <description>&lt;P&gt;What does SAS show as the design matrix in the output compared to your text or expected matrix? My guess is it doesn't line up. Look at how SAS parametrizes variables in the class statement.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2016 07:31:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/G-Matrix-shows-covariance-of-reference-category-for-generalized/m-p/292078#M15556</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-08-17T07:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: G Matrix shows covariance of reference category for generalized logit in proc glimmix?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/G-Matrix-shows-covariance-of-reference-category-for-generalized/m-p/292391#M15558</link>
      <description>&lt;P&gt;Thanks for the hint!! Indeed, the design matrix for the fixed as well as for the random effects looks completely different than described in Prescott and Brown.&lt;/P&gt;&lt;P&gt;In the SAS/Stat user's guide for proc glimmix, I was not able to find how the design matrix (for fixed and random effects) and consequently also not how the G Matrix are constructed for dist= mult and link=glogit. So I read out the disignmatrix and tried to figure out a pattern, but the only thing I was able to see was that the reference category seems to be always coded like the first non-reference category ....&amp;nbsp; By the way, the options for 'outdesign' as described in the user manual do not properly work, e.g. nomiss resulted in an error message. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have any idea where I can find a detailed description on the construction of the design matrix in proc glimmix for the respective distribution?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;M&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2016 09:37:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/G-Matrix-shows-covariance-of-reference-category-for-generalized/m-p/292391#M15558</guid>
      <dc:creator>Maya1</dc:creator>
      <dc:date>2016-08-18T09:37:37Z</dc:date>
    </item>
  </channel>
</rss>

