<?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: Segmented line graph in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Segmented-line-graph/m-p/825479#M326061</link>
    <description>&lt;P&gt;Thank you for your reply. What I meant to say was the two regression lines.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT: for example, when I run this same process in R, the two regression lines meet at the joint. (with the same results)&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jul 2022 17:29:17 GMT</pubDate>
    <dc:creator>Levi_M</dc:creator>
    <dc:date>2022-07-26T17:29:17Z</dc:date>
    <item>
      <title>Segmented line graph</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Segmented-line-graph/m-p/825476#M326059</link>
      <description>&lt;P&gt;Hi! I am putting together a segmented regression with visualization. However, plotting the data, I can not seem to get the two periods to touch. Could anyone help provide assistance with this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="unnamed.png" style="width: 674px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/73744i1A374E0533065978/image-size/large?v=v2&amp;amp;px=999" role="button" title="unnamed.png" alt="unnamed.png" /&gt;&lt;/span&gt;proc&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;autoreg&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;data=a1;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;model&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;rates = QTRs aft_cnt&amp;nbsp; /&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;method=ml&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;nlag=&lt;STRONG&gt;12&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;backstep&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;dwprob&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;loglikl;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;output&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;out=auto_reg&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;predicted=pred;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;by&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Patient_Age_Category;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;/*This line of code will treat each age_cat separately*/&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;sgplot&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;data=glimmix_out&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;noautolegend;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;block&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;x=QTRs&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;block=period /&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;transparency=&lt;STRONG&gt;.75&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;scatter&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;x=QTRs&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;y=rates /&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;markerattrs=(symbol=CircleFilled&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;color=black);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;series&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;x=QTRs&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;y=pred /&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;group=period&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;lineattrs=(thickness=&lt;STRONG&gt;3&lt;/STRONG&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;by&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Patient_Age_Category;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;/*This line of code will treat each age_cat separately*/&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 17:15:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Segmented-line-graph/m-p/825476#M326059</guid>
      <dc:creator>Levi_M</dc:creator>
      <dc:date>2022-07-26T17:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: Segmented line graph</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Segmented-line-graph/m-p/825478#M326060</link>
      <description>&lt;P&gt;I don't know what you mean by this: "&lt;SPAN&gt;I can not seem to get the two periods to touch" ?? What should the plot look like if the two periods touched? (It looks like they touch to me, separated by a vertical line)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 17:23:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Segmented-line-graph/m-p/825478#M326060</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-07-26T17:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Segmented line graph</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Segmented-line-graph/m-p/825479#M326061</link>
      <description>&lt;P&gt;Thank you for your reply. What I meant to say was the two regression lines.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT: for example, when I run this same process in R, the two regression lines meet at the joint. (with the same results)&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 17:29:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Segmented-line-graph/m-p/825479#M326061</guid>
      <dc:creator>Levi_M</dc:creator>
      <dc:date>2022-07-26T17:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Segmented line graph</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Segmented-line-graph/m-p/825480#M326062</link>
      <description>&lt;P&gt;But your blue line and your red line do not intersect each other at the boundary between blue and red. They would intersect to the left of the boundary, in the blue region.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 17:34:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Segmented-line-graph/m-p/825480#M326062</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-07-26T17:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: Segmented line graph</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Segmented-line-graph/m-p/825481#M326063</link>
      <description>&lt;P&gt;I see what you are saying, thanks. I just need to drop that boundary region.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 17:36:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Segmented-line-graph/m-p/825481#M326063</guid>
      <dc:creator>Levi_M</dc:creator>
      <dc:date>2022-07-26T17:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Segmented line graph</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Segmented-line-graph/m-p/825482#M326064</link>
      <description>My guess is that the regression line in the left panel is only extending across the range of the data in the "before" period. The point on the vertical line would seem to belong to the "after" period.</description>
      <pubDate>Tue, 26 Jul 2022 17:38:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Segmented-line-graph/m-p/825482#M326064</guid>
      <dc:creator>svh</dc:creator>
      <dc:date>2022-07-26T17:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Segmented line graph</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Segmented-line-graph/m-p/825657#M326117</link>
      <description>&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2017/04/05/nonsmooth-models-spline-effects.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2017/04/05/nonsmooth-models-spline-effects.html&lt;/A&gt; &lt;A href="https://blogs.sas.com/content/iml/2020/12/14/segmented-regression-sas.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2020/12/14/segmented-regression-sas.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 13:05:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Segmented-line-graph/m-p/825657#M326117</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-07-27T13:05:05Z</dc:date>
    </item>
  </channel>
</rss>

