<?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 mcmc code error in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-mcmc-code-error/m-p/928476#M365295</link>
    <description>&lt;P&gt;[I have just reported susanmoly2's reply as inappropriate content as it contains an unrelated advertising link, embedded in what sounds like AI-generated gibberish.]&lt;/P&gt;</description>
    <pubDate>Wed, 15 May 2024 12:41:12 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2024-05-15T12:41:12Z</dc:date>
    <item>
      <title>proc mcmc code error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-mcmc-code-error/m-p/928380#M365256</link>
      <description>&lt;P&gt;Tried using the following code and obtained the error message below. Would greatly appreciate any insight into how to correct code/what I am doing wrong.&amp;nbsp; variables BMI and age are continuous, gender is binary.&lt;BR /&gt;&lt;BR /&gt;Code:&lt;/P&gt;&lt;P&gt;proc mcmc data=pdata outpost=pdata seed=1234 nmc=20000;&lt;BR /&gt;ods select PostSumInt;&lt;BR /&gt;parms beta0 0 beta1 0 beta2 0 beta3 0 s2 1;&lt;BR /&gt;prior s2 ~ igamma(0.01, s=0.01);&lt;BR /&gt;prior beta: ~ general(0);&lt;BR /&gt;w = beta0 + beta1*bmi + beta2*age + beta3*gender;&lt;BR /&gt;random delta ~ normal(w, var=100) subject=childid;&lt;BR /&gt;pi = logistic(delta);&lt;BR /&gt;model sick ~ binomial(p=pi);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ERROR: A hyperparameter of the random effect delta changed value in observation 2. The&lt;BR /&gt;hyperparameter is a function of the data set variable bmi, which must remain constant&lt;BR /&gt;within subjects.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 20:41:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-mcmc-code-error/m-p/928380#M365256</guid>
      <dc:creator>loris1</dc:creator>
      <dc:date>2024-05-14T20:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: proc mcmc code error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-mcmc-code-error/m-p/928476#M365295</link>
      <description>&lt;P&gt;[I have just reported susanmoly2's reply as inappropriate content as it contains an unrelated advertising link, embedded in what sounds like AI-generated gibberish.]&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 12:41:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-mcmc-code-error/m-p/928476#M365295</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2024-05-15T12:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: proc mcmc code error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-mcmc-code-error/m-p/928638#M365379</link>
      <description>&lt;P&gt;The error message is telling you that the BMI for one of the subjects changed during the course of the repeated observations. It says that in a random effects model, the variables in the random effects are assumed to be constant within each subject.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;nbsp;Would greatly appreciate any insight into how to correct code/what I am doing wrong.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you expect BMI to vary within subjects, you might need to change your model and incorporate BMI as a fixed effect. Or, I suppose you could use the average BMI for each subject during the study if the BMI is changes very little.&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 10:45:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-mcmc-code-error/m-p/928638#M365379</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2024-05-16T10:45:39Z</dc:date>
    </item>
  </channel>
</rss>

