<?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: Informative Priors in Proc Genmod not working in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Informative-Priors-in-Proc-Genmod-not-working/m-p/391671#M20442</link>
    <description>&lt;P&gt;When something works for one data set but not another, assuming there were no other options than more variables then one suspects the content of the data is the issue not that the code is "not working".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With neither code nor data it is extremely difficult to pinpoint where things may not go as expected.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Aug 2017 21:33:43 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-08-29T21:33:43Z</dc:date>
    <item>
      <title>Informative Priors in Proc Genmod not working</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Informative-Priors-in-Proc-Genmod-not-working/m-p/391669#M20441</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im trying to use informative priors in proc genmod. I tried a simple test using this code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc genmod data= SASHELP.CARS;&lt;BR /&gt;class Type Make;&lt;BR /&gt;model MSRP= EngineSize Weight WheelBase Length Type Make Cylinders Invoice EngineSize*Make WheelBase*Make / d=normal link=identity ;&lt;BR /&gt;bayes seed=1 coeffprior=normal(input=normalprior) outpost=postcars ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods output postsummaries=POSTSUMMARIES FitStatistics=FitStats;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data set "&lt;SPAN&gt;normalprior&lt;/SPAN&gt;" looks like this:&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; data NormalPrior;&lt;BR /&gt;input _type_ $ Intercept Length ;&lt;BR /&gt;datalines;&lt;BR /&gt;Var 1e6 0.000000001&lt;BR /&gt;Mean 0.0 19650&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This worked relatively well. I got confidence intervals for each estimate and I could see the priors being used in the &amp;nbsp;"Initial values of chain" section and the "Independant normal prior for regression coefficients" section. The posterior summaries section also reflects the prior that I gave the model.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i tried to do the same on a different dataset with many more variables and much more data - It some how does not work. I see the priors in the &amp;nbsp;&lt;SPAN&gt; "Independant normal prior for regression coefficients" section but &lt;EM&gt;&lt;U&gt;DO NOT&lt;/U&gt;&lt;/EM&gt; see the priors I used in the&amp;nbsp;"Initial values of chain" section - This section contains the initial non-prior estimates. As a result - When i check my posterior summaries - the estimate is exactly the same the as normal estimate before the informative prior. Im not sure why this is happening. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any insights&amp;nbsp;will be greatly appreciated.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2017 21:28:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Informative-Priors-in-Proc-Genmod-not-working/m-p/391669#M20441</guid>
      <dc:creator>Ajax</dc:creator>
      <dc:date>2017-08-29T21:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Informative Priors in Proc Genmod not working</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Informative-Priors-in-Proc-Genmod-not-working/m-p/391671#M20442</link>
      <description>&lt;P&gt;When something works for one data set but not another, assuming there were no other options than more variables then one suspects the content of the data is the issue not that the code is "not working".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With neither code nor data it is extremely difficult to pinpoint where things may not go as expected.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2017 21:33:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Informative-Priors-in-Proc-Genmod-not-working/m-p/391671#M20442</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-08-29T21:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Informative Priors in Proc Genmod not working</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Informative-Priors-in-Proc-Genmod-not-working/m-p/392047#M20454</link>
      <description>Is there another way to constraint coefficient to a specific value in proc genmod ?</description>
      <pubDate>Wed, 30 Aug 2017 21:43:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Informative-Priors-in-Proc-Genmod-not-working/m-p/392047#M20454</guid>
      <dc:creator>Ajax</dc:creator>
      <dc:date>2017-08-30T21:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: Informative Priors in Proc Genmod not working</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Informative-Priors-in-Proc-Genmod-not-working/m-p/393244#M20526</link>
      <description>&lt;P&gt;I don't believe that your intitial values should be equal to your prior values, it should be linked to&amp;nbsp;the seed that&amp;nbsp;you set. If you want to set initial values then you can specify INITIALMLE to use the maximimum likelihood estimates, or you can input a datset with initial values using INITIAL=.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I noticed when I tried INITIALMLE, I would get the exact same posterior estimates, even when I changed my priors. I'm not sure why this happened. It could be my data. I also got very different posterior estimates when I used the variances vs. covariances in a prior dataset.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2017 14:47:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Informative-Priors-in-Proc-Genmod-not-working/m-p/393244#M20526</guid>
      <dc:creator>evardoodle</dc:creator>
      <dc:date>2017-09-05T14:47:39Z</dc:date>
    </item>
  </channel>
</rss>

