<?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: Linear Regression : Determination of the Timepoint (X) corresponding to the min sum of residuals in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Linear-Regression-Determination-of-the-Timepoint-X-corresponding/m-p/647846#M31087</link>
    <description>&lt;P&gt;If your goal is to produce a model using "piecewise linear regression splines" ... Google finds lots of examples of doing this, that's really where you should start.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a blog post from &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;that gives an example.&lt;/P&gt;</description>
    <pubDate>Thu, 14 May 2020 15:21:51 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2020-05-14T15:21:51Z</dc:date>
    <item>
      <title>Linear Regression : Determination of the Timepoint (X) corresponding to the min sum of residuals.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Linear-Regression-Determination-of-the-Timepoint-X-corresponding/m-p/647731#M31081</link>
      <description>&lt;P&gt;DATA :&lt;/P&gt;&lt;P&gt;response variable (Y) : biological marker , quantitative continuous&amp;nbsp;&lt;/P&gt;&lt;P&gt;Predictor variable (X) : Time variable , quantitative continuous&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Procedure used:&lt;/P&gt;&lt;P&gt;Linear regression model (Proc Reg) : Y=X&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dear community,&lt;/P&gt;&lt;P&gt;I would like to output a graph presenting the sum square residuals (between the linear regression model and the data set) on the Y axis and the Time variable on the X axis in order to determine visually the minimum residual sum of squares and its respective Time (x)&lt;/P&gt;&lt;P&gt;Or alternatively, calculate the Timevar x corresponding to the minimum residuals sum of squares.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me with the procedure to use ?&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HaddadMez&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 09:19:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Linear-Regression-Determination-of-the-Timepoint-X-corresponding/m-p/647731#M31081</guid>
      <dc:creator>HaddadMez</dc:creator>
      <dc:date>2020-05-14T09:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Linear Regression : Determination of the Timepoint (X) corresponding to the min sum of residuals</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Linear-Regression-Determination-of-the-Timepoint-X-corresponding/m-p/647745#M31082</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/328881"&gt;@HaddadMez&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;DATA :&lt;/P&gt;
&lt;P&gt;response variable (Y) : biological marker , quantitative continuous&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Predictor variable (X) : Time variable , quantitative continuous&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Procedure used:&lt;/P&gt;
&lt;P&gt;Linear regression model (Proc Reg) : Y=X&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dear community,&lt;/P&gt;
&lt;P&gt;I would like to output a graph presenting the sum square residuals (between the linear regression model and the data set) on the Y axis and the Time variable on the X axis in order to determine visually the minimum residual sum of squares and its respective Time (x)&lt;/P&gt;
&lt;P&gt;Or alternatively, calculate the Timevar x corresponding to the minimum residuals sum of squares.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The sum of squares of the residuals is a single number. Do you really want to plot a single number?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This sum of squares of the residuals does not vary by X. So your quest to find the timevar x corresponding to the minimum sum of squares also does not make sense.&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 10:35:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Linear-Regression-Determination-of-the-Timepoint-X-corresponding/m-p/647745#M31082</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-05-14T10:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: Linear Regression : Determination of the Timepoint (X) corresponding to the min sum of residuals</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Linear-Regression-Determination-of-the-Timepoint-X-corresponding/m-p/647839#M31086</link>
      <description>&lt;P&gt;Dear PaigeMiller,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My goal is to apply a 2 piecewise linear regression model (left graph on the joint picture) to the Data presented in the previous mail. In order to estimate the Timevar (x value) corresponding to the changepoint,&amp;nbsp; I wanted to adopt the same approach as the one used in the article referred below.&lt;/P&gt;&lt;P&gt;Approach : estimate a changepoint by minimizing the residuals sum of squares (cf right graph in the picture).&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the residuals sum of square is a single number and does not vary depending on x values, I misinterpreted the figure 1. Do you think they have calculated the residuals sum of squares values for models with different changepoints and selected the one with the lowest residuals sum of squares value?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-right" image-alt="Green Piecewise Linear Regression.JPG" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/39446i2E7C1522673FB23C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Green Piecewise Linear Regression.JPG" alt="Green Piecewise Linear Regression.JPG" /&gt;&lt;/span&gt;If so, do you have an idea how to reproduce it with SAS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again for your help and guidance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;HaddadMez&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;article reference :&amp;nbsp;&lt;/P&gt;&lt;DIV class="csl-bib-body"&gt;&lt;DIV class="csl-entry"&gt;Greene, M.E., Rolfson, O., Garellick, G., Gordon, M., Nemes, S., 2015. Improved statistical analysis of pre- and post-treatment patient-reported outcome measures (PROMs): the applicability of piecewise linear regression splines. Qual Life Res 24, 567–573. &lt;A href="https://doi.org/10.1007/s11136-014-0808-3" target="_blank"&gt;https://doi.org/10.1007/s11136-014-0808-3&lt;/A&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 14 May 2020 15:05:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Linear-Regression-Determination-of-the-Timepoint-X-corresponding/m-p/647839#M31086</guid>
      <dc:creator>HaddadMez</dc:creator>
      <dc:date>2020-05-14T15:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Linear Regression : Determination of the Timepoint (X) corresponding to the min sum of residuals</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Linear-Regression-Determination-of-the-Timepoint-X-corresponding/m-p/647846#M31087</link>
      <description>&lt;P&gt;If your goal is to produce a model using "piecewise linear regression splines" ... Google finds lots of examples of doing this, that's really where you should start.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a blog post from &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;that gives an example.&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 15:21:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Linear-Regression-Determination-of-the-Timepoint-X-corresponding/m-p/647846#M31087</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-05-14T15:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Linear Regression : Determination of the Timepoint (X) corresponding to the min sum of residuals</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Linear-Regression-Determination-of-the-Timepoint-X-corresponding/m-p/647852#M31088</link>
      <description>Thanks for your help.</description>
      <pubDate>Thu, 14 May 2020 15:31:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Linear-Regression-Determination-of-the-Timepoint-X-corresponding/m-p/647852#M31088</guid>
      <dc:creator>HaddadMez</dc:creator>
      <dc:date>2020-05-14T15:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Linear Regression : Determination of the Timepoint (X) corresponding to the min sum of residuals</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Linear-Regression-Determination-of-the-Timepoint-X-corresponding/m-p/647883#M31090</link>
      <description>&lt;P&gt;The data for figure 1 are generated by fitting models with the change point successively incremented from -0.5 to 1.0, probably by a step size of 0.01, and keeping the RSS in a dataset for future plotting vs. change point values. At each possible change point (-0.50, -0.49, -0.48...0.98, 0.99, 1.00) the model is fit and a single residual sum of squares is obtained.&amp;nbsp; Since it appears that the model is linear with normal residuals, this is the same as plotting the residual standard deviation against the change point.&amp;nbsp; It is a lot of work for one graph, and a maximum likelihood optimizer (as in NLIN or NLMIXED) should find a similar value (unless the starting value was around 0.66 where there is a local minimum).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 17:34:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Linear-Regression-Determination-of-the-Timepoint-X-corresponding/m-p/647883#M31090</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-05-14T17:34:53Z</dc:date>
    </item>
  </channel>
</rss>

