<?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: how to make reg line inclusive of entire year in sgplot in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/how-to-make-reg-line-inclusive-of-entire-year-in-sgplot/m-p/789524#M32412</link>
    <description>&lt;P&gt;Here is the graph as it currently appears.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="this might work.png" style="width: 853px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/67314iE5DCED4E0172B8DE/image-size/large?v=v2&amp;amp;px=999" role="button" title="this might work.png" alt="this might work.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jan 2022 16:29:25 GMT</pubDate>
    <dc:creator>cmc_NYC</dc:creator>
    <dc:date>2022-01-11T16:29:25Z</dc:date>
    <item>
      <title>how to make reg line inclusive of entire year in sgplot</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-make-reg-line-inclusive-of-entire-year-in-sgplot/m-p/789521#M32411</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've created a graphic showing results of an ITS showing the impact of an event on a population.&amp;nbsp; This works as I want it to extend the line stops with 2016, and I'd like it to connect with the refline noting the event.&amp;nbsp; Is this something I can do in my datalines or in the program below?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data AimII_Table2;&lt;BR /&gt;input TimeElapsed Year Distress Event $;&lt;BR /&gt;datalines;&lt;BR /&gt;0 2011 3.7339771 Before&lt;BR /&gt;1 2012 3.8688698 Before&lt;BR /&gt;2 2013 3.8669976 Before&lt;BR /&gt;3 2014 3.5876379 Before&lt;BR /&gt;4 2015 3.64495 Before&lt;BR /&gt;5 2016 3.4850532 Before&lt;BR /&gt;6 2017 3.6610487 After&lt;BR /&gt;7 2018 3.5467001 After&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Proc sgplot data=AimII_Table2;&lt;BR /&gt;Xaxis Values=(2011 TO 2018);&lt;BR /&gt;Yaxis Values=(1 TO 25);&lt;BR /&gt;reg x=Year y=Distress/group=Event ;&lt;BR /&gt;refline 2017 / axis=x label='Event' Transparency = 0.5;&lt;BR /&gt;Title'Distress over Time';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 16:27:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-make-reg-line-inclusive-of-entire-year-in-sgplot/m-p/789521#M32411</guid>
      <dc:creator>cmc_NYC</dc:creator>
      <dc:date>2022-01-11T16:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to make reg line inclusive of entire year in sgplot</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-make-reg-line-inclusive-of-entire-year-in-sgplot/m-p/789524#M32412</link>
      <description>&lt;P&gt;Here is the graph as it currently appears.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="this might work.png" style="width: 853px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/67314iE5DCED4E0172B8DE/image-size/large?v=v2&amp;amp;px=999" role="button" title="this might work.png" alt="this might work.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 16:29:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-make-reg-line-inclusive-of-entire-year-in-sgplot/m-p/789524#M32412</guid>
      <dc:creator>cmc_NYC</dc:creator>
      <dc:date>2022-01-11T16:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to make reg line inclusive of entire year in sgplot</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-make-reg-line-inclusive-of-entire-year-in-sgplot/m-p/789525#M32413</link>
      <description>&lt;P&gt;You can modify the data. Note TimeElapsed=5 now appears twice, this causes the line to be extended to 2017.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data AimII_Table2;
input TimeElapsed Year Distress Event $;
datalines;
0 2011 3.7339771 Before
1 2012 3.8688698 Before
2 2013 3.8669976 Before
3 2014 3.5876379 Before
4 2015 3.64495 Before
5 2016 3.4850532 Before
5 2017 3.4850532 Before
6 2017 3.6610487 After
7 2018 3.5467001 After
;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Jan 2022 16:30:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-make-reg-line-inclusive-of-entire-year-in-sgplot/m-p/789525#M32413</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-01-11T16:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to make reg line inclusive of entire year in sgplot</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-make-reg-line-inclusive-of-entire-year-in-sgplot/m-p/789544#M32414</link>
      <description>Thank you!!!! That did it!</description>
      <pubDate>Tue, 11 Jan 2022 17:09:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-make-reg-line-inclusive-of-entire-year-in-sgplot/m-p/789544#M32414</guid>
      <dc:creator>cmc_NYC</dc:creator>
      <dc:date>2022-01-11T17:09:03Z</dc:date>
    </item>
  </channel>
</rss>

