<?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: The confidence and prediction intervals after multiple linear regression in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/The-confidence-and-prediction-intervals-after-multiple-linear/m-p/429674#M22585</link>
    <description>&lt;P&gt;Try this one instead then, it has a fully worked and explained example.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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;</description>
    <pubDate>Mon, 22 Jan 2018 16:48:54 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-01-22T16:48:54Z</dc:date>
    <item>
      <title>The confidence and prediction intervals after multiple linear regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/The-confidence-and-prediction-intervals-after-multiple-linear/m-p/426134#M22573</link>
      <description>&lt;PRE&gt;proc reg data=work.d200;
model average_daily_dose_during_the_in=age__y_ BSA gender_code af
hypertension chf VAR94 AKI_for_T_test T_test___indication AF_and_Warfarin_History
var33 var34 / selection=stepwise SLE=0.05 SLS=0.20 vif clb cli clm;
run;&lt;/PRE&gt;&lt;P&gt;The options of clm and cli would output the confidence and prediction intervals after the regression. But, the output was based on each individual observation. I want to know the overall confidence and prediction intervals based on each group of observations. How?&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="Screen Shot 2018-01-09 at 11.44.27 PM.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/17728i2C7E8D4CB54C1159/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2018-01-09 at 11.44.27 PM.png" alt="Screen Shot 2018-01-09 at 11.44.27 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2018 15:46:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/The-confidence-and-prediction-intervals-after-multiple-linear/m-p/426134#M22573</guid>
      <dc:creator>TomHsiung</dc:creator>
      <dc:date>2018-01-09T15:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: The confidence and prediction intervals after multiple linear regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/The-confidence-and-prediction-intervals-after-multiple-linear/m-p/426145#M22574</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;I want to know the overall confidence and prediction intervals based on each group of observations. How?
&lt;P class="1515513813052"&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P class="1515513813052"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="1515513813052"&gt;What does that mean? What's a "group" to you, there's no clear logic in the code that defines what would be a group.&lt;/P&gt;
&lt;P class="1515513813052"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="1515513813052"&gt;If you're looking for estimates at specific data points you can score your data using any of the techniques illustrated here:&lt;/P&gt;
&lt;P class="1515513813052"&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;</description>
      <pubDate>Tue, 09 Jan 2018 16:05:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/The-confidence-and-prediction-intervals-after-multiple-linear/m-p/426145#M22574</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-09T16:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: The confidence and prediction intervals after multiple linear regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/The-confidence-and-prediction-intervals-after-multiple-linear/m-p/426853#M22575</link>
      <description>&lt;P&gt;Hi, Reeza&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for the delay. My intention is to get the 95% CI and PI for pre-defined groups. For short, the y response variable is average daily dose (mg), for example, and the predictor variables including continuous quantitative variables such as age, body surface area, serum concentration of albumin, and other dummy (qualitative) variables such as whether the congestive heart failure present, whether specific genotype present, whether hospitalization for longer than 14 days, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Obviously, the each qualitative variables divided these patients into two subgroups (the condition present or not). I want to know the 95% CI and PI for both subgroups. It's that when I am investigating the 95% CI and PI for both groups divided by a specific dummy variable, other predictor variables are adjusted (by the inherent nature of linear regression).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to get the 95% CI and PI for the both subgroups.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 12:42:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/The-confidence-and-prediction-intervals-after-multiple-linear/m-p/426853#M22575</guid>
      <dc:creator>TomHsiung</dc:creator>
      <dc:date>2018-01-11T12:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: The confidence and prediction intervals after multiple linear regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/The-confidence-and-prediction-intervals-after-multiple-linear/m-p/426935#M22576</link>
      <description>&lt;P&gt;Try the approach here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2016/06/22/sas-effectplot-statement.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2016/06/22/sas-effectplot-statement.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It still sounds like you're scoring the data, once with each estimate on group and the averages of the other values I assume.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The post here will answer your question on how to score data.&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;</description>
      <pubDate>Thu, 11 Jan 2018 18:01:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/The-confidence-and-prediction-intervals-after-multiple-linear/m-p/426935#M22576</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-11T18:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: The confidence and prediction intervals after multiple linear regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/The-confidence-and-prediction-intervals-after-multiple-linear/m-p/428693#M22577</link>
      <description>&lt;P&gt;It's a little more difficult to understand.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2018 06:18:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/The-confidence-and-prediction-intervals-after-multiple-linear/m-p/428693#M22577</guid>
      <dc:creator>TomHsiung</dc:creator>
      <dc:date>2018-01-18T06:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: The confidence and prediction intervals after multiple linear regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/The-confidence-and-prediction-intervals-after-multiple-linear/m-p/428835#M22578</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/184847"&gt;@TomHsiung&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;It's a little more difficult to understand.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;And I don't know what that means...&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2018 15:53:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/The-confidence-and-prediction-intervals-after-multiple-linear/m-p/428835#M22578</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-18T15:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: The confidence and prediction intervals after multiple linear regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/The-confidence-and-prediction-intervals-after-multiple-linear/m-p/429071#M22579</link>
      <description>&lt;P&gt;I need to do much work. The State has a function called "margins". But it seems that margins did not output confidence interval of means by subgroups.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 10:10:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/The-confidence-and-prediction-intervals-after-multiple-linear/m-p/429071#M22579</guid>
      <dc:creator>TomHsiung</dc:creator>
      <dc:date>2018-01-19T10:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: The confidence and prediction intervals after multiple linear regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/The-confidence-and-prediction-intervals-after-multiple-linear/m-p/429079#M22580</link>
      <description>&lt;P&gt;From references, I got the formulas to compute 95% confidence and 95% prediction intervals, respectively. To know the 95% CI and PI, "yhat" and standard error of the estimates must be known first. Luckily, yhat and standard error of the estimate could be estimated from he sample data set and the distributions of residual (y - yhat) and (yhat) are luckily normal. As a consequence, the 95% CI and PI could be computed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My issue is that my linear regression model has multiple predictors, including several continuous quantitative variables mixed with several other dummy (qualitative) variables. Those dummy variables are factors that divides my observations into two groups (presence of something, or absence of). I just want to know the 95% CI and PI for these two groups. SAS University Edition output a 95% CI and PI for each observation, which is not what I want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;95% CI after (simple) linear regression:&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="Screen-Shot-2017-10-16-at-8.46.44-PM" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/17967i3130DD7605A84FCD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen-Shot-2017-10-16-at-8.46.44-PM" alt="Screen-Shot-2017-10-16-at-8.46.44-PM" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And for 95% PI the formula is:&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="Screen-Shot-2017-10-16-at-9.47.24-PM" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/17968i91E46544B33E34A5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen-Shot-2017-10-16-at-9.47.24-PM" alt="Screen-Shot-2017-10-16-at-9.47.24-PM" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 10:55:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/The-confidence-and-prediction-intervals-after-multiple-linear/m-p/429079#M22580</guid>
      <dc:creator>TomHsiung</dc:creator>
      <dc:date>2018-01-19T10:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: The confidence and prediction intervals after multiple linear regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/The-confidence-and-prediction-intervals-after-multiple-linear/m-p/429377#M22581</link>
      <description>&lt;P&gt;Or is there any method to estimate the 95%CI and PI according to&amp;nbsp;independent variables with pre-defined specific values. For instance, I set the age to 60 years, the body surface area to 1.73 m2, the serum albumin level to 30 g/L?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Sat, 20 Jan 2018 14:24:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/The-confidence-and-prediction-intervals-after-multiple-linear/m-p/429377#M22581</guid>
      <dc:creator>TomHsiung</dc:creator>
      <dc:date>2018-01-20T14:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: The confidence and prediction intervals after multiple linear regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/The-confidence-and-prediction-intervals-after-multiple-linear/m-p/429489#M22582</link>
      <description>&lt;P&gt;Yes, thats what scoring does, there's examples of the several ways to do this in the blog post I initially linked to.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/184847"&gt;@TomHsiung&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Or is there any method to estimate the 95%CI and PI according to&amp;nbsp;independent variables with pre-defined specific values. For instance, I set the age to 60 years, the body surface area to 1.73 m2, the serum albumin level to 30 g/L?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jan 2018 20:14:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/The-confidence-and-prediction-intervals-after-multiple-linear/m-p/429489#M22582</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-21T20:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: The confidence and prediction intervals after multiple linear regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/The-confidence-and-prediction-intervals-after-multiple-linear/m-p/429630#M22583</link>
      <description>&lt;P&gt;Would you please make a example? The blog you mentioned is a bit difficult to understand. The syntax in the blog is not straightforward. Much appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2018 14:50:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/The-confidence-and-prediction-intervals-after-multiple-linear/m-p/429630#M22583</guid>
      <dc:creator>TomHsiung</dc:creator>
      <dc:date>2018-01-22T14:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: The confidence and prediction intervals after multiple linear regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/The-confidence-and-prediction-intervals-after-multiple-linear/m-p/429645#M22584</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/184847"&gt;@TomHsiung&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Would you please make a example? The blog you mentioned is a bit difficult to understand. The syntax in the blog is not straightforward. Much appreciated!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What is difficult to understand? Please be specific. In your example, you are using PROC REG. In the blog post, there is an example using PROC REG.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, another approach is given in my reply here:&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Statistical-Procedures/Export-PROC-PRINQUAL-data/m-p/429561#M22566" target="_blank"&gt;https://communities.sas.com/t5/SAS-Statistical-Procedures/Export-PROC-PRINQUAL-data/m-p/429561#M22566&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2018 15:04:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/The-confidence-and-prediction-intervals-after-multiple-linear/m-p/429645#M22584</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-01-22T15:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: The confidence and prediction intervals after multiple linear regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/The-confidence-and-prediction-intervals-after-multiple-linear/m-p/429674#M22585</link>
      <description>&lt;P&gt;Try this one instead then, it has a fully worked and explained example.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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;</description>
      <pubDate>Mon, 22 Jan 2018 16:48:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/The-confidence-and-prediction-intervals-after-multiple-linear/m-p/429674#M22585</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-22T16:48:54Z</dc:date>
    </item>
  </channel>
</rss>

