<?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: Smoother graph with confidence levels in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Smoother-graph-with-confidence-levels/m-p/5537#M5536</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Phill,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are asking how to generate a shaded area, you could use the BAND statement in PROC SGPLOT which is part of ODS graphics.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods graphics on;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data toplot;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set sashelp.air;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; L95 = air - 0.30*air;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; U95 = air + 0.30*air;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sgplot data=toplot; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; band&amp;nbsp;&amp;nbsp;&amp;nbsp; x=date lower=L95 upper=U95 / fillattrs=GraphConfidence legendlabel="Confidence" name="band";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; series&amp;nbsp; x=date y=air / legendlabel="Summary Curve" name="series";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; keylegend "series" "band"/ location=outside position=bottom;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that the order of the BAND and the SERIES statements is important. If reverted, the line produced by the series is not seen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Sep 2012 08:37:09 GMT</pubDate>
    <dc:creator>mastropi</dc:creator>
    <dc:date>2012-09-10T08:37:09Z</dc:date>
    <item>
      <title>Smoother graph with confidence levels</title>
      <link>https://community.jmp.com/t5/Discussions/Smoother-graph-with-confidence-levels/m-p/5536#M5535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have attached a couple of images of graphs I have created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The raw data is a series of temperature probe measurements showing cooling curves by pallet. The image 'data trends' shows each trend, the image 'smoother' shows a summary curve. I want to be able to represent the distribution on this summary curve. A suggestion has been to have a shaded area around the line that indicates 95% confidence, but we have no idea how to construct this graph. Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 02:19:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Smoother-graph-with-confidence-levels/m-p/5536#M5535</guid>
      <dc:creator>phillby</dc:creator>
      <dc:date>2012-08-30T02:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Smoother graph with confidence levels</title>
      <link>https://community.jmp.com/t5/Discussions/Smoother-graph-with-confidence-levels/m-p/5537#M5536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Phill,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are asking how to generate a shaded area, you could use the BAND statement in PROC SGPLOT which is part of ODS graphics.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods graphics on;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data toplot;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set sashelp.air;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; L95 = air - 0.30*air;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; U95 = air + 0.30*air;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sgplot data=toplot; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; band&amp;nbsp;&amp;nbsp;&amp;nbsp; x=date lower=L95 upper=U95 / fillattrs=GraphConfidence legendlabel="Confidence" name="band";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; series&amp;nbsp; x=date y=air / legendlabel="Summary Curve" name="series";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; keylegend "series" "band"/ location=outside position=bottom;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that the order of the BAND and the SERIES statements is important. If reverted, the line produced by the series is not seen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 08:37:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Smoother-graph-with-confidence-levels/m-p/5537#M5536</guid>
      <dc:creator>mastropi</dc:creator>
      <dc:date>2012-09-10T08:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Smoother graph with confidence levels</title>
      <link>https://community.jmp.com/t5/Discussions/Smoother-graph-with-confidence-levels/m-p/5538#M5537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not aware of a good definition of a confidence interval for a spline smoother. (There is no real parameter being estimated.) Your data may suggest a definition -- it looks like it's made up of multiple series. For instance, you might take the 95% confidence interval of the mean for each X. With some effort, you can plot such an interval in GB using the Area element in Range mode. You have to make a plot with 3 Ys (data, upper and lower) and use the right-click &amp;gt; element &amp;gt; Y submenu to turn off the data Y for the Area element and turn off the upper/lower Ys for the Smoother element.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2535_smootherinterval.png" style="width: 414px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/81iBA686B2B51A24130/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2535_smootherinterval.png" alt="2535_smootherinterval.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://andrewgelman.com/2012/08/graphs-showing-uncertainty-using-lighter-intensities-for-the-lines-that-go-further-from-the-center-to-de-emphasize-the-edges/" title="http://andrewgelman.com/2012/08/graphs-showing-uncertainty-using-lighter-intensities-for-the-lines-that-go-further-from-the-center-to-de-emphasize-the-edges/" rel="nofollow noopener noreferrer" target="_blank"&gt;Another technique&lt;/A&gt; is to make lots of copies of the variable using random samples, and plot smoothers for the copies transparently. Here's an attempt at that with 30 resamples:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2537_smootherinterval2.png" style="width: 431px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/82i82657E74A5B7913C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2537_smootherinterval2.png" alt="2537_smootherinterval2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 20:01:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Smoother-graph-with-confidence-levels/m-p/5538#M5537</guid>
      <dc:creator>XanGregg</dc:creator>
      <dc:date>2016-10-18T20:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Smoother graph with confidence levels</title>
      <link>https://community.jmp.com/t5/Discussions/Smoother-graph-with-confidence-levels/m-p/5539#M5538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the ideas. We'll have a look at whether we can apply this to what we're doing. Phill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2012 20:12:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Smoother-graph-with-confidence-levels/m-p/5539#M5538</guid>
      <dc:creator>phillby</dc:creator>
      <dc:date>2012-09-20T20:12:26Z</dc:date>
    </item>
  </channel>
</rss>

