<?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: Two fitted line with 3 variables in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Two-fitted-line-with-3-variables/m-p/378008#M13050</link>
    <description>What about the individual line attributes? How can I customize the lines with the group procedure? Also I need a fitted line to determine the initial correlation not a straight fitted line. The loess feature worked better.</description>
    <pubDate>Fri, 21 Jul 2017 06:22:56 GMT</pubDate>
    <dc:creator>syk</dc:creator>
    <dc:date>2017-07-21T06:22:56Z</dc:date>
    <item>
      <title>Two fitted line with 3 variables</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Two-fitted-line-with-3-variables/m-p/378000#M13048</link>
      <description>&lt;P&gt;How can I recreate this gplot procedure using sgplot?&lt;/P&gt;&lt;PRE&gt;symbol1 v=M i=sm70 c=black l=1;
symbol2 v=S i=sm70 c=black l=3;
proc gplot data=insurance;
   plot months*size=stock;
run;&lt;/PRE&gt;&lt;PRE&gt;proc sgplot data=insurance; 
	pbspline x=stock y=months*size; &lt;/PRE&gt;&lt;P&gt;I tried using the above sgplot procedure but gave me errors because SAS UE does not recognize the "months*size" part from the former gplot procedures. I need two fitted lines within the graph because the stocks are binary 0 or 1.&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/10434iD55FCAAF0FF98F2F/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="Capture.GIF" title="Capture.GIF" width="381" height="402" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/10435i87E078E5B95877BF/image-size/medium?v=1.0&amp;amp;px=-1" border="0" alt="Capture.GIF" title="Capture.GIF" width="441" height="376" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2017 04:58:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Two-fitted-line-with-3-variables/m-p/378000#M13048</guid>
      <dc:creator>syk</dc:creator>
      <dc:date>2017-07-21T04:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Two fitted line with 3 variables</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Two-fitted-line-with-3-variables/m-p/378005#M13049</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=insurance;
  reg x=size y=month / group=stock;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Jul 2017 06:16:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Two-fitted-line-with-3-variables/m-p/378005#M13049</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2017-07-21T06:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Two fitted line with 3 variables</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Two-fitted-line-with-3-variables/m-p/378008#M13050</link>
      <description>What about the individual line attributes? How can I customize the lines with the group procedure? Also I need a fitted line to determine the initial correlation not a straight fitted line. The loess feature worked better.</description>
      <pubDate>Fri, 21 Jul 2017 06:22:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Two-fitted-line-with-3-variables/m-p/378008#M13050</guid>
      <dc:creator>syk</dc:creator>
      <dc:date>2017-07-21T06:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Two fitted line with 3 variables</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Two-fitted-line-with-3-variables/m-p/378011#M13052</link>
      <description>&lt;P&gt;The REG statement supports the LINEATTRS option. See the documentation here&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/grstatproc/69716/HTML/default/viewer.htm#p0mn6vl6clqbgyn1ivs69lezdxhf.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/grstatproc/69716/HTML/default/viewer.htm#p0mn6vl6clqbgyn1ivs69lezdxhf.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2017 06:31:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Two-fitted-line-with-3-variables/m-p/378011#M13052</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-07-21T06:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Two fitted line with 3 variables</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Two-fitted-line-with-3-variables/m-p/378014#M13053</link>
      <description>&lt;P&gt;You could also use the PBSPLINE statement as you initially intended, still group by stock and use a high value for the SMOOTH option like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data insurance;
input months size stock;
datalines;
30 31  0
26 92  0
22 104 0
19 120 0
17 151 0
21 175 0
12 210 0
16 238 0
0  277 0
4  290 0
38 68  1
31 85  1
30 124 1
28 164 1
20 166 1
21 224 1
14 246 1
15 272 1
11 295 1
13 305 1
;

title 'Insurance Innovation';
title2 'With Smoothed Lines';
proc sgplot data = insurance;
   pbspline x = size y = months / group=stock smooth = 1000000;
   yaxis min=0 max=40;
   xaxis min=0 max=400;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Jul 2017 06:48:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Two-fitted-line-with-3-variables/m-p/378014#M13053</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-07-21T06:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: Two fitted line with 3 variables</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Two-fitted-line-with-3-variables/m-p/378016#M13054</link>
      <description>How do I customized individual line attributes? ex) one line to be solid and one to be dotted.</description>
      <pubDate>Fri, 21 Jul 2017 06:51:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Two-fitted-line-with-3-variables/m-p/378016#M13054</guid>
      <dc:creator>syk</dc:creator>
      <dc:date>2017-07-21T06:51:56Z</dc:date>
    </item>
  </channel>
</rss>

