<?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: Proc Reg - extrapolation of regression line with confidence intervals in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-extrapolation-of-regression-line-with-confidence/m-p/776746#M38048</link>
    <description>&lt;P&gt;It helps to have some experience with regulators on this.&amp;nbsp; Linear extrapolation of stability data has been done for years.&amp;nbsp; While that may not make it "right", there is an impressive track record.&amp;nbsp; The problem with shifting to any of the time series methods is that the number of time points on these studies is often too small to be able to estimate the parameters, the time points are not equally spaced, and the measurements are not on the same sample (i.e., several samples are taken at the initiation of the stability testing period, and then destructively analyzed at pre-determined time points).&amp;nbsp; Consequently, a lot of time series methods aren't robust enough to deal with this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As far as survival analysis, I think you would need multiple samples to analyze at each pre-determined time point to be able to estimate the hazard ratio (failure rate).&amp;nbsp; Unless the synthesis has been scaled up to a near production level, there may not be sufficient test article to carry out a decent survival analysis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So for once, I can understand the use of a not-quite-right method.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
    <pubDate>Wed, 27 Oct 2021 14:27:52 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2021-10-27T14:27:52Z</dc:date>
    <item>
      <title>Proc Reg - extrapolation of regression line with confidence intervals</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-extrapolation-of-regression-line-with-confidence/m-p/776580#M38036</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am trying to extrapolate a regression line for a stability test-retesting.&amp;nbsp; I need to show at what point the 95% Confidence interval, when extended, will hit the acceptance criteria.&amp;nbsp; &amp;nbsp;I have data up to 18 months and want to extrapolate the line to 24 months.&amp;nbsp; The guidelines require that the 95% confidence limit be extended to see where the limit hits the acceptance criteria.&amp;nbsp; If I include in the input data the extra timepoints (i.e. 21 and 24 months) with missing data, Proc Reg gives me the predication values for those timepoints as well.&amp;nbsp; It also gives me confidence limits for those time points.&amp;nbsp; So I actually have my answer.&amp;nbsp; What my question is - is how are these confidence intervals calculated.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Example code looks as follows:&lt;/P&gt;
&lt;P&gt;data a;&lt;BR /&gt;input time result;&lt;BR /&gt;cards;&lt;BR /&gt;0 13&lt;BR /&gt;3 23&lt;BR /&gt;6 26&lt;BR /&gt;9 32&lt;BR /&gt;12 30&lt;BR /&gt;15 33&lt;BR /&gt;18 34&lt;BR /&gt;21 .&lt;BR /&gt;24 .&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc reg data=a;&lt;BR /&gt;model result=time;&lt;BR /&gt;output out=reg p=pred uclm=upper lclm=lower;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 18:51:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-extrapolation-of-regression-line-with-confidence/m-p/776580#M38036</guid>
      <dc:creator>nsns</dc:creator>
      <dc:date>2021-10-26T18:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Reg - extrapolation of regression line with confidence intervals</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-extrapolation-of-regression-line-with-confidence/m-p/776581#M38037</link>
      <description>&lt;P&gt;Is this an academic question or you're trying to implement this in your corporation?&lt;BR /&gt;&lt;BR /&gt;Linear regression is not appropriate for time series data, assumptions of independence are violated. &lt;BR /&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.3/statug/statug_reg_details33.htm" target="_blank" rel="noopener"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.3/statug/statug_reg_details33.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Prediction intervals for future are a different calculation than confidence intervals on known data points. &lt;BR /&gt;&lt;A href="https://stats.stackexchange.com/questions/16493/difference-between-confidence-intervals-and-prediction-intervals" target="_blank" rel="noopener"&gt;https://stats.stackexchange.com/questions/16493/difference-between-confidence-intervals-and-prediction-intervals&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;EDIT:&lt;/P&gt;
&lt;P&gt;The technique you're using is outlined here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2014/02/17/the-missing-value-trick-for-scoring-a-regression-model.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2014/02/17/the-missing-value-trick-for-scoring-a-regression-model.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Other options for scoring:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2014/02/19/scoring-a-regression-model-in-sas.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2014/02/19/scoring-a-regression-model-in-sas.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 19:06:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-extrapolation-of-regression-line-with-confidence/m-p/776581#M38037</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-10-26T19:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Reg - extrapolation of regression line with confidence intervals</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-extrapolation-of-regression-line-with-confidence/m-p/776588#M38038</link>
      <description>Dear Reeza,&lt;BR /&gt;Thank you for your response. I will check out the references you sent. In the meanwhile I wanted to answer your question. &lt;BR /&gt;I am analyzing stability data and following the FDA guidelines &lt;BR /&gt;Q1E Evaluation of Stability Data. &lt;BR /&gt;(The data I sent was example data to illustrate the question. )&lt;BR /&gt;Thanks.</description>
      <pubDate>Tue, 26 Oct 2021 19:23:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-extrapolation-of-regression-line-with-confidence/m-p/776588#M38038</guid>
      <dc:creator>nsns</dc:creator>
      <dc:date>2021-10-26T19:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Reg - extrapolation of regression line with confidence intervals</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-extrapolation-of-regression-line-with-confidence/m-p/776591#M38039</link>
      <description>&lt;P&gt;Drug stability over time? Doesn't that usually require survival analysis?&lt;/P&gt;
&lt;P&gt;It's been a while since I've done a clinical trial though (a decade).&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 19:38:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-extrapolation-of-regression-line-with-confidence/m-p/776591#M38039</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-10-26T19:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Reg - extrapolation of regression line with confidence intervals</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-extrapolation-of-regression-line-with-confidence/m-p/776694#M38044</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The guidelines say specifically that "Regression analysis is considered an appropriate approach to evaluating the stability data for a quantitative attribute and establishing a retest period or shelf life."&amp;nbsp; It also says "An appropriate approach to retest period or shelf life estimation is to analyze a quantitative&lt;BR /&gt;attribute (e.g., assay, degradation products) by determining the earliest time at which the 95&lt;BR /&gt;percent confidence limit for the mean intersects the proposed acceptance criterion"&lt;/P&gt;
&lt;P&gt;The figure in the guidelines shows data collected up to 12 months and then extrapolation to show the degradation would be within the acceptance range at 24 months (the guidelines have rules for how long you may extrapolate and also will need to update with longer term data - but this is acceptable).&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-inline" image-alt="nsns_0-1635320648657.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65078iC0ECA2177981693B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nsns_0-1635320648657.png" alt="nsns_0-1635320648657.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So I think that I am ok with using the regression procedure.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The output dataset that is generated using the sample data above includes the missing points.&amp;nbsp; This is what it generates:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="454"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD rowspan="3" width="161"&gt;time&lt;/TD&gt;
&lt;TD rowspan="3" width="39"&gt;result&lt;/TD&gt;
&lt;TD width="95"&gt;Predicted Value&lt;/TD&gt;
&lt;TD width="80"&gt;Lower Bound&lt;/TD&gt;
&lt;TD width="79"&gt;Upper Bound&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="95"&gt;of result&lt;/TD&gt;
&lt;TD width="80"&gt;of 95% C.I.&lt;/TD&gt;
&lt;TD width="79"&gt;of 95% C.I.&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="95"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="80"&gt;for Mean&lt;/TD&gt;
&lt;TD width="79"&gt;for Mean&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="161"&gt;0&lt;/TD&gt;
&lt;TD width="39"&gt;13&lt;/TD&gt;
&lt;TD width="95"&gt;17.9643&lt;/TD&gt;
&lt;TD width="80"&gt;11.841&lt;/TD&gt;
&lt;TD width="79"&gt;24.0876&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="161"&gt;3&lt;/TD&gt;
&lt;TD width="39"&gt;23&lt;/TD&gt;
&lt;TD width="95"&gt;21.0714&lt;/TD&gt;
&lt;TD width="80"&gt;16.2679&lt;/TD&gt;
&lt;TD width="79"&gt;25.8749&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="161"&gt;6&lt;/TD&gt;
&lt;TD width="39"&gt;26&lt;/TD&gt;
&lt;TD width="95"&gt;24.1786&lt;/TD&gt;
&lt;TD width="80"&gt;20.3811&lt;/TD&gt;
&lt;TD width="79"&gt;27.9761&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="161"&gt;9&lt;/TD&gt;
&lt;TD width="39"&gt;32&lt;/TD&gt;
&lt;TD width="95"&gt;27.2857&lt;/TD&gt;
&lt;TD width="80"&gt;23.8891&lt;/TD&gt;
&lt;TD width="79"&gt;30.6823&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="161"&gt;12&lt;/TD&gt;
&lt;TD width="39"&gt;30&lt;/TD&gt;
&lt;TD width="95"&gt;30.3929&lt;/TD&gt;
&lt;TD width="80"&gt;26.5954&lt;/TD&gt;
&lt;TD width="79"&gt;34.1904&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="161"&gt;15&lt;/TD&gt;
&lt;TD width="39"&gt;33&lt;/TD&gt;
&lt;TD width="95"&gt;33.5&lt;/TD&gt;
&lt;TD width="80"&gt;28.6965&lt;/TD&gt;
&lt;TD width="79"&gt;38.3035&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="161"&gt;18&lt;/TD&gt;
&lt;TD width="39"&gt;34&lt;/TD&gt;
&lt;TD width="95"&gt;36.6071&lt;/TD&gt;
&lt;TD width="80"&gt;30.4838&lt;/TD&gt;
&lt;TD width="79"&gt;42.7304&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="161"&gt;21&lt;/TD&gt;
&lt;TD width="39"&gt;.&lt;/TD&gt;
&lt;TD width="95"&gt;39.7143&lt;/TD&gt;
&lt;TD width="80"&gt;32.1193&lt;/TD&gt;
&lt;TD width="79"&gt;47.3093&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="161"&gt;24&lt;/TD&gt;
&lt;TD width="39"&gt;.&lt;/TD&gt;
&lt;TD width="95"&gt;42.8214&lt;/TD&gt;
&lt;TD width="80"&gt;33.6758&lt;/TD&gt;
&lt;TD width="79"&gt;51.967&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I want to understand is how the 95% confidence interval in the proc reg procedure is calculated for the extended period - in my example above, that is for months 21 and 24.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(I am still working through your links).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 07:58:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-extrapolation-of-regression-line-with-confidence/m-p/776694#M38044</guid>
      <dc:creator>nsns</dc:creator>
      <dc:date>2021-10-27T07:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Reg - extrapolation of regression line with confidence intervals</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-extrapolation-of-regression-line-with-confidence/m-p/776728#M38046</link>
      <description>If you need "extrapolation of regression", then you need SAS/ETS .&lt;BR /&gt;I suggest post your question at Forecasting Forum .&lt;BR /&gt;Check PROC ARIMA , PROC UCM , PROC ESM ,PROC FORECAST ......</description>
      <pubDate>Wed, 27 Oct 2021 12:59:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-extrapolation-of-regression-line-with-confidence/m-p/776728#M38046</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-10-27T12:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Reg - extrapolation of regression line with confidence intervals</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-extrapolation-of-regression-line-with-confidence/m-p/776739#M38047</link>
      <description>&lt;P&gt;Others have already raised questions about whether PROC REG is the appropriate tool, but the answer to your question is found in &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/v_013/statug/statug_introreg_sect036.htm" target="_self"&gt;the SAS documentation for predicted values&lt;/A&gt;.&amp;nbsp; See the equations for LowerM and UpperM.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 14:03:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-extrapolation-of-regression-line-with-confidence/m-p/776739#M38047</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-10-27T14:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Reg - extrapolation of regression line with confidence intervals</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-extrapolation-of-regression-line-with-confidence/m-p/776746#M38048</link>
      <description>&lt;P&gt;It helps to have some experience with regulators on this.&amp;nbsp; Linear extrapolation of stability data has been done for years.&amp;nbsp; While that may not make it "right", there is an impressive track record.&amp;nbsp; The problem with shifting to any of the time series methods is that the number of time points on these studies is often too small to be able to estimate the parameters, the time points are not equally spaced, and the measurements are not on the same sample (i.e., several samples are taken at the initiation of the stability testing period, and then destructively analyzed at pre-determined time points).&amp;nbsp; Consequently, a lot of time series methods aren't robust enough to deal with this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As far as survival analysis, I think you would need multiple samples to analyze at each pre-determined time point to be able to estimate the hazard ratio (failure rate).&amp;nbsp; Unless the synthesis has been scaled up to a near production level, there may not be sufficient test article to carry out a decent survival analysis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So for once, I can understand the use of a not-quite-right method.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 14:27:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-extrapolation-of-regression-line-with-confidence/m-p/776746#M38048</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2021-10-27T14:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Reg - extrapolation of regression line with confidence intervals</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-extrapolation-of-regression-line-with-confidence/m-p/777549#M38108</link>
      <description>Thanks for the link</description>
      <pubDate>Sun, 31 Oct 2021 08:13:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-extrapolation-of-regression-line-with-confidence/m-p/777549#M38108</guid>
      <dc:creator>nsns</dc:creator>
      <dc:date>2021-10-31T08:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Reg - extrapolation of regression line with confidence intervals</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-extrapolation-of-regression-line-with-confidence/m-p/777550#M38109</link>
      <description>The guidelines specifically say regression analysis.  Since this is what is requested, I would rather stick with the regression.  Thanks for the links that you sent.  They are interesting and helpful and give insight - although I am not sure that they resolve my question.  Will continue to review them.  Thanks.</description>
      <pubDate>Sun, 31 Oct 2021 08:16:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-extrapolation-of-regression-line-with-confidence/m-p/777550#M38109</guid>
      <dc:creator>nsns</dc:creator>
      <dc:date>2021-10-31T08:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Reg - extrapolation of regression line with confidence intervals</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-extrapolation-of-regression-line-with-confidence/m-p/777552#M38110</link>
      <description>It's been a very long time since I've done time series and forecasting - I will look into this however, I feel that since the FDA guidelines specifically say regression - I should work with this.  Thanks for your input and your suggestion.</description>
      <pubDate>Sun, 31 Oct 2021 08:17:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-extrapolation-of-regression-line-with-confidence/m-p/777552#M38110</guid>
      <dc:creator>nsns</dc:creator>
      <dc:date>2021-10-31T08:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Reg - extrapolation of regression line with confidence intervals</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-extrapolation-of-regression-line-with-confidence/m-p/777553#M38111</link>
      <description>Thanks for your reply Steve.  I agree with you.  Additionally, I think that since the FDA has included specific conditions for the stability assessments - i.e how far out you may go etc, and that long term testing has to follow the extrapolated values (for confirmation, I believe), I think that using this method is ok.  Thanks for your input.</description>
      <pubDate>Sun, 31 Oct 2021 08:21:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Reg-extrapolation-of-regression-line-with-confidence/m-p/777553#M38111</guid>
      <dc:creator>nsns</dc:creator>
      <dc:date>2021-10-31T08:21:03Z</dc:date>
    </item>
  </channel>
</rss>

