<?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 proc glimmix: residual in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-glimmix-residual/m-p/21827#M687</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using this SAS code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background-color: white; font-family: 'Courier New'; color: navy; font-size: 11pt;"&gt;PROC&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background-color: white; font-family: 'Courier New'; color: navy; font-size: 11pt;"&gt;GLIMMIX&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 11pt;"&gt;DATA&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background-color: white; font-family: 'Courier New'; color: black; font-size: 11pt;"&gt;=input &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 11pt;"&gt;plots&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background-color: white; font-family: 'Courier New'; color: black; font-size: 11pt;"&gt;= all;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 11pt;"&gt;class&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background-color: white; font-family: 'Courier New'; color: black; font-size: 11pt;"&gt; hosp mese;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 11pt;"&gt;model&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background-color: white; font-family: 'Courier New'; color: black; font-size: 11pt;"&gt; y=&amp;nbsp; x_1 x_2 x_3&amp;nbsp; mese /&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 11pt;"&gt;dist&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background-color: white; font-family: 'Courier New'; color: black; font-size: 11pt;"&gt;=poisson &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 11pt;"&gt;link&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background-color: white; font-family: 'Courier New'; color: black; font-size: 11pt;"&gt;=log &lt;/SPAN&gt;s&lt;SPAN lang="EN-US" style="background-color: white; font-family: 'Courier New'; color: black; font-size: 11pt;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 11pt;"&gt;output&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 11pt;"&gt;out&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background-color: white; font-family: 'Courier New'; color: black; font-size: 11pt;"&gt;=gmxout &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 11pt;"&gt;predicted&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background-color: white; font-family: 'Courier New'; color: black; font-size: 11pt;"&gt;=pred &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; font-family: Courier New;"&gt;resid=&lt;SPAN style="color: #000000;"&gt;res&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background-color: white; font-family: 'Courier New'; color: black; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 11pt;"&gt;random&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 11pt;"&gt; intercept /&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 11pt;"&gt;subject&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 11pt;"&gt;=hosp ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.5pt 0px;"&gt;&lt;STRONG style="color: navy; font-size: 11pt; background-color: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0.5pt 0px;"&gt;I need some explanation about the predicted value and the&amp;nbsp; residual I find in the&amp;nbsp;&amp;nbsp; output&amp;nbsp; file: how is calculated the predicted value (it's a value too far from observed value and in contrast with residual) ? And about residual, what kind of residual is calculated? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0.5pt 0px;"&gt;Thanks in andvance for any help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0.5pt 0px;"&gt;Kind regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Dec 2011 15:32:19 GMT</pubDate>
    <dc:creator>L_L</dc:creator>
    <dc:date>2011-12-30T15:32:19Z</dc:date>
    <item>
      <title>proc glimmix: residual</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-glimmix-residual/m-p/21827#M687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using this SAS code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background-color: white; font-family: 'Courier New'; color: navy; font-size: 11pt;"&gt;PROC&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background-color: white; font-family: 'Courier New'; color: navy; font-size: 11pt;"&gt;GLIMMIX&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 11pt;"&gt;DATA&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background-color: white; font-family: 'Courier New'; color: black; font-size: 11pt;"&gt;=input &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 11pt;"&gt;plots&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background-color: white; font-family: 'Courier New'; color: black; font-size: 11pt;"&gt;= all;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 11pt;"&gt;class&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background-color: white; font-family: 'Courier New'; color: black; font-size: 11pt;"&gt; hosp mese;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 11pt;"&gt;model&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background-color: white; font-family: 'Courier New'; color: black; font-size: 11pt;"&gt; y=&amp;nbsp; x_1 x_2 x_3&amp;nbsp; mese /&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 11pt;"&gt;dist&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background-color: white; font-family: 'Courier New'; color: black; font-size: 11pt;"&gt;=poisson &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 11pt;"&gt;link&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background-color: white; font-family: 'Courier New'; color: black; font-size: 11pt;"&gt;=log &lt;/SPAN&gt;s&lt;SPAN lang="EN-US" style="background-color: white; font-family: 'Courier New'; color: black; font-size: 11pt;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 11pt;"&gt;output&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 11pt;"&gt;out&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background-color: white; font-family: 'Courier New'; color: black; font-size: 11pt;"&gt;=gmxout &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 11pt;"&gt;predicted&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background-color: white; font-family: 'Courier New'; color: black; font-size: 11pt;"&gt;=pred &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; font-family: Courier New;"&gt;resid=&lt;SPAN style="color: #000000;"&gt;res&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background-color: white; font-family: 'Courier New'; color: black; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 11pt;"&gt;random&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 11pt;"&gt; intercept /&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 11pt;"&gt;subject&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 11pt;"&gt;=hosp ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.5pt 0px;"&gt;&lt;STRONG style="color: navy; font-size: 11pt; background-color: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0.5pt 0px;"&gt;I need some explanation about the predicted value and the&amp;nbsp; residual I find in the&amp;nbsp;&amp;nbsp; output&amp;nbsp; file: how is calculated the predicted value (it's a value too far from observed value and in contrast with residual) ? And about residual, what kind of residual is calculated? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0.5pt 0px;"&gt;Thanks in andvance for any help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0.5pt 0px;"&gt;Kind regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Dec 2011 15:32:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-glimmix-residual/m-p/21827#M687</guid>
      <dc:creator>L_L</dc:creator>
      <dc:date>2011-12-30T15:32:19Z</dc:date>
    </item>
    <item>
      <title>proc glimmix: residual</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-glimmix-residual/m-p/21828#M688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are getting the default choices for predicted values and residuals. These are considered conditional values (conditional on the random effects). Thus, you are getting the predicted value (predicted linear predictor) for {x1,x2,x3} for each hosp value in the data set. These are considered BLUPs (actually, EBLUPs). Even if the independent variables were the same, the predicted value would be different for two different hosp values. The residual is just the difference with the observed (calculated on the link scale). If you want the so-called marginal predictions (i.e., at the expected value of 0 for the random hosp effect), use:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output out=gmxout2 pred(noblup)=pred residual(noblup)=residual;&lt;/P&gt;&lt;P&gt;Check out the following for more guidance, or the User's Guide.&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www2.sas.com/proceedings/sugi30/196-30.pdf"&gt;http://www2.sas.com/proceedings/sugi30/196-30.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2012 18:50:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-glimmix-residual/m-p/21828#M688</guid>
      <dc:creator>lvm</dc:creator>
      <dc:date>2012-01-03T18:50:26Z</dc:date>
    </item>
  </channel>
</rss>

