<?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 for surveylogistic to resample error and get full CI in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MCMC-for-surveylogistic-to-resample-error-and-get-full-CI/m-p/128964#M6761</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone done anything similar???? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Mar 2013 20:47:10 GMT</pubDate>
    <dc:creator>saslove</dc:creator>
    <dc:date>2013-03-06T20:47:10Z</dc:date>
    <item>
      <title>PROC MCMC for surveylogistic to resample error and get full CI</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MCMC-for-surveylogistic-to-resample-error-and-get-full-CI/m-p/128963#M6760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial; font-size: small;"&gt;I came across this question at work. I would like to have your input. I have never done monte carlo and i am a newbie. So, please excuse my dumbness!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial; font-size: small;"&gt;I want the standard error from model , error estimate and confidence interval on predicted number of response variable. I want to do simulation (i was told multiply predicted probability by case weight and sum it all up and repeat 1000 times). I need 2.5th and 97.5th % confidence interval and errors on percent predictions.&amp;nbsp; PROC SURVEYLOGISTIC was used for analysis. I then used xbeta and stdxbeta to get the linear predictors and standard error of linear predictor. I back transformed the values. I'm trying to use PROC MCMC here. So, I assume standard error is normally distributed and resample error 1000 times. Also, I need a confidence interval on full prediction and sample error on output.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial; font-size: small; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial; font-size: small; line-height: 1.5em;"&gt;I would like some help here as to use PROC MCMC for getting the desired output. These are just the notes I took from our meeting.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial; font-size: small;"&gt;This is the surveylogistic code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial; font-size: small;"&gt;proc surveylogistic data=outboot;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial; font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where var1="abc" and var2 in ("abc") and var3 in (11, 13) and var4&amp;gt;15&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial; font-size: small;"&gt;and var6&amp;gt;1999 and&amp;nbsp; 85&amp;gt;var7&amp;gt;15;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial; font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; format var varfmt..;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial; font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; stratum strat;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial; font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cluster psu;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial; font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; weight weight;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial; font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class var var2&amp;nbsp; /param=ref;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial; font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model resp (desc)=vara &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: arial; font-size: small;"&gt; varb varc vard&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial; font-size: small; line-height: 1.5em;"&gt; / Rsquare ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial; font-size: small;"&gt;output out=outall predprobs=individual xbeta=predval stdxbeta=sepred;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial; font-size: small;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial; font-size: small;"&gt;How do I use PROC MCMC to get confidence intervals and standard errors. I need CI on full prediction and need to sample error on output. Please help.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2013 16:58:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MCMC-for-surveylogistic-to-resample-error-and-get-full-CI/m-p/128963#M6760</guid>
      <dc:creator>saslove</dc:creator>
      <dc:date>2013-03-06T16:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MCMC for surveylogistic to resample error and get full CI</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MCMC-for-surveylogistic-to-resample-error-and-get-full-CI/m-p/128964#M6761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone done anything similar???? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2013 20:47:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MCMC-for-surveylogistic-to-resample-error-and-get-full-CI/m-p/128964#M6761</guid>
      <dc:creator>saslove</dc:creator>
      <dc:date>2013-03-06T20:47:10Z</dc:date>
    </item>
  </channel>
</rss>

