<?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 GENMOD BAYES - Variance vs. Covariance for prior input dataset produces different answers. Why? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-BAYES-Variance-vs-Covariance-for-prior-input-dataset/m-p/392759#M20531</link>
    <description>&lt;P&gt;Hello SAS Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When using PROC GENMOD for a Bayes analysis, I noticed there is a substantial difference in my posterior estimates when entering in the exact same prior regression information using the coefficient means and &lt;STRONG&gt;full covariance matrix&lt;/STRONG&gt; vs. the coefficient means and just the&lt;STRONG&gt; coeffient variances&lt;/STRONG&gt;. I set a seed for reproducilibity and both models appear to achieve convergence. Please review my code, input priors, and results below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp; proc genmod data=data;&lt;BR /&gt;&amp;nbsp; model DGSYTOT1 = totpcbla RIDAGEYR totpcbla_RIDAGEYR RIAGENDR smoker HSplus / dist=normal link=identity;&lt;BR /&gt;&amp;nbsp; bayes coeffprior=normal(input=prior) &amp;nbsp;seed=12345&lt;BR /&gt;&amp;nbsp; plots=all stats(percent=2.5 50 97.5) diagnostics=all outpost=post;&lt;BR /&gt;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the prior datasets with theoretically equivalent information:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="prior.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/14796i8E9CB4B33DE85C90/image-size/large?v=v2&amp;amp;px=999" role="button" title="prior.JPG" alt="prior.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here are the disparate results:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="results.JPG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/14797i026A2519BD360A02/image-size/medium?v=v2&amp;amp;px=400" role="button" title="results.JPG" alt="results.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I would report very different interpretations of these results and I am not sure which results to trust. Can anyone explain why the input dataset structure matters so much? Is this an estimation error? Am I inputting something incorrectly?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help would be greatly appreciated. Thanks in advance!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Eva&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 02 Sep 2017 15:37:47 GMT</pubDate>
    <dc:creator>evardoodle</dc:creator>
    <dc:date>2017-09-02T15:37:47Z</dc:date>
    <item>
      <title>PROC GENMOD BAYES - Variance vs. Covariance for prior input dataset produces different answers. Why?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-BAYES-Variance-vs-Covariance-for-prior-input-dataset/m-p/392759#M20531</link>
      <description>&lt;P&gt;Hello SAS Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When using PROC GENMOD for a Bayes analysis, I noticed there is a substantial difference in my posterior estimates when entering in the exact same prior regression information using the coefficient means and &lt;STRONG&gt;full covariance matrix&lt;/STRONG&gt; vs. the coefficient means and just the&lt;STRONG&gt; coeffient variances&lt;/STRONG&gt;. I set a seed for reproducilibity and both models appear to achieve convergence. Please review my code, input priors, and results below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp; proc genmod data=data;&lt;BR /&gt;&amp;nbsp; model DGSYTOT1 = totpcbla RIDAGEYR totpcbla_RIDAGEYR RIAGENDR smoker HSplus / dist=normal link=identity;&lt;BR /&gt;&amp;nbsp; bayes coeffprior=normal(input=prior) &amp;nbsp;seed=12345&lt;BR /&gt;&amp;nbsp; plots=all stats(percent=2.5 50 97.5) diagnostics=all outpost=post;&lt;BR /&gt;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the prior datasets with theoretically equivalent information:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="prior.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/14796i8E9CB4B33DE85C90/image-size/large?v=v2&amp;amp;px=999" role="button" title="prior.JPG" alt="prior.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here are the disparate results:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="results.JPG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/14797i026A2519BD360A02/image-size/medium?v=v2&amp;amp;px=400" role="button" title="results.JPG" alt="results.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I would report very different interpretations of these results and I am not sure which results to trust. Can anyone explain why the input dataset structure matters so much? Is this an estimation error? Am I inputting something incorrectly?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help would be greatly appreciated. Thanks in advance!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Eva&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Sep 2017 15:37:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-BAYES-Variance-vs-Covariance-for-prior-input-dataset/m-p/392759#M20531</guid>
      <dc:creator>evardoodle</dc:creator>
      <dc:date>2017-09-02T15:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GENMOD BAYES - Variance vs. Covariance for prior input dataset produces different answers.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-BAYES-Variance-vs-Covariance-for-prior-input-dataset/m-p/393907#M20561</link>
      <description>&lt;P&gt;A very helpful person helped me solve this problem. When you only input prior variances, SAS assumes all covariances are 0, it does not compute the actual covairances. I confirmed this by setting covariances to 0 in the covariance matrix and obtained the same results as inputing variances only.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2017 15:01:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-BAYES-Variance-vs-Covariance-for-prior-input-dataset/m-p/393907#M20561</guid>
      <dc:creator>evardoodle</dc:creator>
      <dc:date>2017-09-07T15:01:14Z</dc:date>
    </item>
  </channel>
</rss>

