<?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: plot a 95% confidence interval in a logistic regression in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/plot-a-95-confidence-interval-in-a-logistic-regression/m-p/451938#M15485</link>
    <description>&lt;P&gt;That depends on how lclmupa and uclmupa were calcualted in the dataset allstats.&amp;nbsp; If you used proc means, then there is an option called alpha which you can set to be most values, but 0.05 from memory give 95% CI.&lt;/P&gt;</description>
    <pubDate>Fri, 06 Apr 2018 15:12:14 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2018-04-06T15:12:14Z</dc:date>
    <item>
      <title>plot a 95% confidence interval in a logistic regression</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/plot-a-95-confidence-interval-in-a-logistic-regression/m-p/451769#M15475</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to add 95% confidence interval bands&amp;nbsp;to the following code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;sgplot&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=AllStats &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;noautolegend&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;axis1&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;label&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; = (&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;font&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'arial'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;axis2&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;label&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; = (&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;font&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'arial'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;label&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; predmupa = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'Hatching probability'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;jsh = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'JSH'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;series&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;y&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=predmupa &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;x&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=jsh;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;scatter&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;y&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=predmupa &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;x&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=jsh;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;Does anyone know how to do this? I used proc glimmix to produce the predicted probabilities.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;Thanks in advance!&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;Bob&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 05:40:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/plot-a-95-confidence-interval-in-a-logistic-regression/m-p/451769#M15475</guid>
      <dc:creator>boban</dc:creator>
      <dc:date>2018-04-06T05:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: plot a 95% confidence interval in a logistic regression</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/plot-a-95-confidence-interval-in-a-logistic-regression/m-p/451770#M15476</link>
      <description>Axis statements do no apply to SG procedures, use XAXIS instead, but the syntax is different. &lt;BR /&gt;&lt;BR /&gt;Do you have the upper and lower estimates for your band? I know that PROC LOGISTIC generates these but not sure about GLIMMIX. If you have the values, a BAND statement is what you’re looking for to create a band. Order does matter here, make sure it’s before the SERIES statement.</description>
      <pubDate>Fri, 06 Apr 2018 05:47:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/plot-a-95-confidence-interval-in-a-logistic-regression/m-p/451770#M15476</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-06T05:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: plot a 95% confidence interval in a logistic regression</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/plot-a-95-confidence-interval-in-a-logistic-regression/m-p/451780#M15478</link>
      <description>&lt;P&gt;Thank you for your reply!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't have the estimates for the bands, and don't know how to get them. Is there a way of obtaining these bands, or plot in any other way?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 07:03:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/plot-a-95-confidence-interval-in-a-logistic-regression/m-p/451780#M15478</guid>
      <dc:creator>boban</dc:creator>
      <dc:date>2018-04-06T07:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: plot a 95% confidence interval in a logistic regression</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/plot-a-95-confidence-interval-in-a-logistic-regression/m-p/451796#M15479</link>
      <description>&lt;P&gt;You can get confidence intervals from a number of procedures depending on what you need - not really an expert, a statistician would be best to ask (proc ttest, means etc.).&amp;nbsp; You may be able to do it directly in the graph:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/grstatproc/62603/HTML/default/viewer.htm#a003155517.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/grstatproc/62603/HTML/default/viewer.htm#a003155517.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 08:27:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/plot-a-95-confidence-interval-in-a-logistic-regression/m-p/451796#M15479</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-04-06T08:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: plot a 95% confidence interval in a logistic regression</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/plot-a-95-confidence-interval-in-a-logistic-regression/m-p/451855#M15482</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this but it doesn't seem to work. l'll keep looking.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 13:10:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/plot-a-95-confidence-interval-in-a-logistic-regression/m-p/451855#M15482</guid>
      <dc:creator>boban</dc:creator>
      <dc:date>2018-04-06T13:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: plot a 95% confidence interval in a logistic regression</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/plot-a-95-confidence-interval-in-a-logistic-regression/m-p/451907#M15483</link>
      <description>&lt;P&gt;I think I solved it!&lt;/P&gt;&lt;P&gt;I used this code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;sgplot&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=AllStats &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;noautolegend&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;axis1&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;label&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; = (&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;font&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'arial'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;axis2&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;label&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; = (&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;font&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'arial'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;label&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; predmupa = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'Hatching probability'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;jsh = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'JSH'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;band&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;x&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; = jsh &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;lower&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; = lclmupa &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;upper&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; = uclmupa/&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;legendlabel&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"95% clm"&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;name&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; =&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"band1"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;series&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;y&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=predmupa &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;x&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=jsh;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;scatter&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;y&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=predmupa &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;x&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=jsh;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;keylegend&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="2"&gt;"band1"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;/ &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;location&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; = inside &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;position&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; = bottomright;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;title&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;I guess this will plot a 95% confidence interval around the predicted mean. Is that right?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;Bob&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 14:33:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/plot-a-95-confidence-interval-in-a-logistic-regression/m-p/451907#M15483</guid>
      <dc:creator>boban</dc:creator>
      <dc:date>2018-04-06T14:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: plot a 95% confidence interval in a logistic regression</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/plot-a-95-confidence-interval-in-a-logistic-regression/m-p/451938#M15485</link>
      <description>&lt;P&gt;That depends on how lclmupa and uclmupa were calcualted in the dataset allstats.&amp;nbsp; If you used proc means, then there is an option called alpha which you can set to be most values, but 0.05 from memory give 95% CI.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 15:12:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/plot-a-95-confidence-interval-in-a-logistic-regression/m-p/451938#M15485</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-04-06T15:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: plot a 95% confidence interval in a logistic regression</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/plot-a-95-confidence-interval-in-a-logistic-regression/m-p/451941#M15486</link>
      <description>&lt;P&gt;In this respect, the bands need to be calculated from the GLIMMIX procedure and then you use the BAND statement.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/45406"&gt;@boban&lt;/a&gt;&amp;nbsp;only you can know if its correct. We can't see your data or log or graph or Glimmix code or know what you're trying to do beyond what's posted here.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 15:14:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/plot-a-95-confidence-interval-in-a-logistic-regression/m-p/451941#M15486</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-06T15:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: plot a 95% confidence interval in a logistic regression</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/plot-a-95-confidence-interval-in-a-logistic-regression/m-p/452182#M15499</link>
      <description>&lt;P&gt;I didn't calculate the bands. I simply requested all stats to be computed from my original data set, and used the out option to save them under the new data set (named all stats).&lt;/P&gt;&lt;P&gt;I then used predmupa to get the predicted probabilities ploted in proc sgplot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;</description>
      <pubDate>Sat, 07 Apr 2018 11:42:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/plot-a-95-confidence-interval-in-a-logistic-regression/m-p/452182#M15499</guid>
      <dc:creator>boban</dc:creator>
      <dc:date>2018-04-07T11:42:54Z</dc:date>
    </item>
  </channel>
</rss>

