<?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: proc bglimm in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-bglimm/m-p/675000#M32319</link>
    <description>&lt;P&gt;I am supposed to get an upgrade soon that will give me access to BGLIMM, so I have been studying the documentation.&amp;nbsp; It looks like BGLIMM does everything using ESTIMATE statements, or through post-processing.&amp;nbsp; This example&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_bglimm_examples03.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en" target="_self"&gt;https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_bglimm_examples03.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en&lt;/A&gt;&amp;nbsp; presents how to post-process using the parameter estimates obtained to get predicted values for a Poisson regression.&amp;nbsp; With some tweaking (and by some, I mean, well, a lot), you could get the predicted probabilities (blup and noblup) by fitting in the parameter estimates for the fixed and random effects (blup) and for just the fixed effects (noblup).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps, and I really, really hope that my upgrade shows up soon, so I could actually run some simulated data to get at what you are asking&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
    <pubDate>Thu, 06 Aug 2020 13:55:20 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2020-08-06T13:55:20Z</dc:date>
    <item>
      <title>proc bglimm</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-bglimm/m-p/674755#M32290</link>
      <description>&lt;P&gt;GLIMMIX gives this option which is very useful for studying discrimination and calibration by means of proc logistic:&lt;/P&gt;
&lt;P&gt;output out=gmxout pred=xbeta pred(ilink)=predprob pred(ilink noblup)=fix_predprob pearson=pearson_residual;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BGLIMM - I cannot find a similar option.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 15:30:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-bglimm/m-p/674755#M32290</guid>
      <dc:creator>carstenenevoldsen</dc:creator>
      <dc:date>2020-08-05T15:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: proc bglimm</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-bglimm/m-p/675000#M32319</link>
      <description>&lt;P&gt;I am supposed to get an upgrade soon that will give me access to BGLIMM, so I have been studying the documentation.&amp;nbsp; It looks like BGLIMM does everything using ESTIMATE statements, or through post-processing.&amp;nbsp; This example&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_bglimm_examples03.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en" target="_self"&gt;https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_bglimm_examples03.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en&lt;/A&gt;&amp;nbsp; presents how to post-process using the parameter estimates obtained to get predicted values for a Poisson regression.&amp;nbsp; With some tweaking (and by some, I mean, well, a lot), you could get the predicted probabilities (blup and noblup) by fitting in the parameter estimates for the fixed and random effects (blup) and for just the fixed effects (noblup).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps, and I really, really hope that my upgrade shows up soon, so I could actually run some simulated data to get at what you are asking&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 13:55:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-bglimm/m-p/675000#M32319</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-08-06T13:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: proc bglimm</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-bglimm/m-p/675140#M32329</link>
      <description>&lt;P&gt;Hi Steve,&lt;/P&gt;
&lt;P&gt;Thanks for the link, which I should have been aware of.&lt;/P&gt;
&lt;P&gt;You can get access to bglimm if you use SAS University Edition (straight forward to install).&lt;/P&gt;
&lt;P&gt;The solution suggested in the link is not transparent to me.&lt;/P&gt;
&lt;P&gt;How should it be implemented when we have two (or more) random effect statements? I have an example with two cross-classified random effects.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Carsten&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 21:16:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-bglimm/m-p/675140#M32329</guid>
      <dc:creator>carstenenevoldsen</dc:creator>
      <dc:date>2020-08-06T21:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: proc bglimm</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-bglimm/m-p/675219#M32331</link>
      <description>&lt;P&gt;Well, the random statements give rise to the estimates for the gamma vector, so for any instance you would have to do something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Calculate the equivalent of a pred(blup) */
numblup = exp (X'beta + Z'gamma);
prob_ind = numblup/(1+numblup);

/* or calculate the equivalent of a red(noblup) */
numnoblup = exp(X'beta);
prob_mean = numnoblup/(1+numnoblup);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It appears that you get the beta's and gamma's from a dataset created with the outpost= option in the PROC BLIMM statement.&amp;nbsp; Without having one of those at hand, I am sort of stuck. I &lt;EM&gt;think&amp;nbsp;&lt;/EM&gt;that you could then calculate residuals by merging the calculated values back against the original dataset (or better SQL, where you can also calculate the residuals in a single call).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 11:02:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-bglimm/m-p/675219#M32331</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-08-07T11:02:56Z</dc:date>
    </item>
  </channel>
</rss>

