<?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: WARNING: There is still significant autocorrelation after 50 lags ... in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MCMC-WARNING-There-is-still-significant-autocorrelation/m-p/511356#M26173</link>
    <description>When you have high autocorrelation among the samples, you need to run the chain much longer to obtain a few thousand independent samples.  This is what the NMC= option does.   Try increasing that&lt;BR /&gt;</description>
    <pubDate>Thu, 08 Nov 2018 12:54:04 GMT</pubDate>
    <dc:creator>SAS_Rob</dc:creator>
    <dc:date>2018-11-08T12:54:04Z</dc:date>
    <item>
      <title>PROC MCMC: WARNING: There is still significant autocorrelation after 50 lags ...</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MCMC-WARNING-There-is-still-significant-autocorrelation/m-p/511205#M26166</link>
      <description>&lt;P&gt;When I tried to use the code below to run Proc MCMC, I got two warnings:&lt;/P&gt;
&lt;P&gt;WARNING: There is still significant autocorrelation after 50 lags, and the effective sample size for the parameter pm_a might not&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;be estimated accurately.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;WARNING: There is still significant autocorrelation after 50 lags, and the effective sample size for the parameter pm_b might not&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;be estimated accurately.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried removing "thin=25" or changing the value of thin, I still got these warnings. Any suggestions?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title 'Gamma Survival Model';
ods graphics on;
proc mcmc data=adtte outpost=expsurvout nmc=5025 thin=25 seed=4861
   diag=(mcse ess);
   ods select PostSumInt TADpanel ess mcse;

   parms pm_a = 1.2 pm_b = 200;
   prior pm_a ~ gamma(0.01, is=0.01);
   prior pm_b ~ gamma(0.1, is=0.001);

   llike = (1-cnsr)*logpdf("gamma", aval, pm_a, pm_b) +
             cnsr*logsdf("gamma", aval, pm_a, pm_b);

   model general(llike);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Nov 2018 21:29:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MCMC-WARNING-There-is-still-significant-autocorrelation/m-p/511205#M26166</guid>
      <dc:creator>fengyuwuzu</dc:creator>
      <dc:date>2018-11-07T21:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MCMC: WARNING: There is still significant autocorrelation after 50 lags ...</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MCMC-WARNING-There-is-still-significant-autocorrelation/m-p/511356#M26173</link>
      <description>When you have high autocorrelation among the samples, you need to run the chain much longer to obtain a few thousand independent samples.  This is what the NMC= option does.   Try increasing that&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Nov 2018 12:54:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MCMC-WARNING-There-is-still-significant-autocorrelation/m-p/511356#M26173</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2018-11-08T12:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MCMC: WARNING: There is still significant autocorrelation after 50 lags ...</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MCMC-WARNING-There-is-still-significant-autocorrelation/m-p/511381#M26174</link>
      <description>&lt;P&gt;Thank you. But when I increased nmc=5000000 I still got this same warning.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2018 14:13:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MCMC-WARNING-There-is-still-significant-autocorrelation/m-p/511381#M26174</guid>
      <dc:creator>fengyuwuzu</dc:creator>
      <dc:date>2018-11-08T14:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MCMC: WARNING: There is still significant autocorrelation after 50 lags ...</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MCMC-WARNING-There-is-still-significant-autocorrelation/m-p/938377#M46820</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Did you finally find a solution to this warning?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 15:29:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MCMC-WARNING-There-is-still-significant-autocorrelation/m-p/938377#M46820</guid>
      <dc:creator>Clg</dc:creator>
      <dc:date>2024-08-06T15:29:13Z</dc:date>
    </item>
  </channel>
</rss>

