<?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: GBARLINE with Regression in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/GBARLINE-with-Regression/m-p/40064#M1272</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is exactly what I wound up doing.&amp;nbsp; I was just hoping that htere was some way for the GBARLINE to honour the SYMBOL statement and use the I=RL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found out (after a quick call to tech support) that the GBARLINE will only use I=JOIN, no matter what you code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would rather use a VBAR chart and overlay the regression line with ANNOTATE, but we don't have SAS STAT here and my statistics are rather rusty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Nov 2011 15:08:22 GMT</pubDate>
    <dc:creator>OS2Rules</dc:creator>
    <dc:date>2011-11-02T15:08:22Z</dc:date>
    <item>
      <title>GBARLINE with Regression</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/GBARLINE-with-Regression/m-p/40062#M1270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to use regression when creating the GBARLINE PLOT?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a symbol statement but it seems to ignore this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 14:17:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/GBARLINE-with-Regression/m-p/40062#M1270</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2011-11-02T14:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: GBARLINE with Regression</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/GBARLINE-with-Regression/m-p/40063#M1271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The fundamental problem with doing regression lines in bar charts (and therefore bar-line charts)&lt;/P&gt;&lt;P&gt;is that the bars are considered to be evenly-spaced (character) variables, rather than treated &lt;/P&gt;&lt;P&gt;as a proportionally-spaced numeric axis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To plot a regression line, you'd want to use a Gplot with a numeric axis.&amp;nbsp; You can then 'fake'&lt;/P&gt;&lt;P&gt;the bars in the Gplot by using the 'needle' interpolation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a GBarline example I've modified to use Gplot, and do a regression line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;title1 "NYSE Closing Price and Volume - 2002";&lt;BR /&gt;&amp;nbsp; data nyse;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; format Day date7.;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; format High Low Close comma12.;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; format Volume comma12.;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; input Day date7. High Low Close Volume;&lt;BR /&gt;datalines;&lt;BR /&gt;01AUG07 10478.76 10346.24 10426.91 1908809&lt;BR /&gt;02AUG07 11042.92 10298.44 10274.65 1807543&lt;BR /&gt;05AUG07 10498.22 10400.31 10456.43 1500656&lt;BR /&gt;06AUG07 10694.47 10636.32 10762.98 1498403&lt;BR /&gt;07AUG07 10801.12 10695.13 10759.48 1695602&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;symbol1 value=none interpol=needle width=15 color=blue;&lt;BR /&gt;symbol2 value=dot interpol=rl color=black;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;axis1 offset=(15,15);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc gplot data=nyse;&lt;BR /&gt;plot volume*day=1 / haxis=axis1;&lt;BR /&gt;plot2 close*day=2 / haxis=axis1;&lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 14:37:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/GBARLINE-with-Regression/m-p/40063#M1271</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2011-11-02T14:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: GBARLINE with Regression</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/GBARLINE-with-Regression/m-p/40064#M1272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is exactly what I wound up doing.&amp;nbsp; I was just hoping that htere was some way for the GBARLINE to honour the SYMBOL statement and use the I=RL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found out (after a quick call to tech support) that the GBARLINE will only use I=JOIN, no matter what you code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would rather use a VBAR chart and overlay the regression line with ANNOTATE, but we don't have SAS STAT here and my statistics are rather rusty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 15:08:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/GBARLINE-with-Regression/m-p/40064#M1272</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2011-11-02T15:08:22Z</dc:date>
    </item>
  </channel>
</rss>

