<?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 Why standard error of the residual differs in the same sample? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Why-standard-error-of-the-residual-differs-in-the-same-sample/m-p/722324#M34996</link>
    <description>&lt;P&gt;Dear experts,&lt;/P&gt;&lt;P&gt;I'm studying with the SAS Certification Prep Guide, and get stuck at the &lt;EM&gt;Studentized Residual&lt;/EM&gt;&amp;nbsp;part.&lt;/P&gt;&lt;P&gt;The formula of the studentized residual includes "&lt;STRONG&gt;standard error of residual&lt;/STRONG&gt;" as the denominator, and I thought the&amp;nbsp;&lt;U&gt;standard error of residual&lt;/U&gt; from the same sample will be the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the output(from a simple regression model) shows that the&amp;nbsp;&lt;U&gt;standard error of residual(&lt;/U&gt;stderr_residual&lt;U&gt;)&lt;/U&gt;&amp;nbsp;varies, and seems that records with same predictor value share the same&amp;nbsp;&lt;U&gt;standard error of residual&lt;/U&gt;.&lt;/P&gt;&lt;P&gt;Could someone explain why the&amp;nbsp;&lt;U&gt;standard error of residual&lt;/U&gt; varies, and how to calculate it to generate output as shown below? Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;【Code】&lt;/P&gt;&lt;PRE&gt;libname sasba 'c:\sasba\data';

data Revenue;
set sasba.revenue;
run;

proc reg data=Revenue;
model y = x;
output out=diagnostics predicted=yhat residual=residual
stdr=stderr_residual student=student ;
run;

data res;
set diagnostics;
run;

proc print data=res;
var adexpense revenue yhat residual stderr_residual student;
run;&lt;/PRE&gt;&lt;P&gt;【Output】&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JenjenL_0-1614397987665.png" style="width: 429px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55260i51FF8C600F90707D/image-dimensions/429x925?v=v2" width="429" height="925" role="button" title="JenjenL_0-1614397987665.png" alt="JenjenL_0-1614397987665.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 27 Feb 2021 08:34:10 GMT</pubDate>
    <dc:creator>JenjenL</dc:creator>
    <dc:date>2021-02-27T08:34:10Z</dc:date>
    <item>
      <title>Why standard error of the residual differs in the same sample?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Why-standard-error-of-the-residual-differs-in-the-same-sample/m-p/722324#M34996</link>
      <description>&lt;P&gt;Dear experts,&lt;/P&gt;&lt;P&gt;I'm studying with the SAS Certification Prep Guide, and get stuck at the &lt;EM&gt;Studentized Residual&lt;/EM&gt;&amp;nbsp;part.&lt;/P&gt;&lt;P&gt;The formula of the studentized residual includes "&lt;STRONG&gt;standard error of residual&lt;/STRONG&gt;" as the denominator, and I thought the&amp;nbsp;&lt;U&gt;standard error of residual&lt;/U&gt; from the same sample will be the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the output(from a simple regression model) shows that the&amp;nbsp;&lt;U&gt;standard error of residual(&lt;/U&gt;stderr_residual&lt;U&gt;)&lt;/U&gt;&amp;nbsp;varies, and seems that records with same predictor value share the same&amp;nbsp;&lt;U&gt;standard error of residual&lt;/U&gt;.&lt;/P&gt;&lt;P&gt;Could someone explain why the&amp;nbsp;&lt;U&gt;standard error of residual&lt;/U&gt; varies, and how to calculate it to generate output as shown below? Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;【Code】&lt;/P&gt;&lt;PRE&gt;libname sasba 'c:\sasba\data';

data Revenue;
set sasba.revenue;
run;

proc reg data=Revenue;
model y = x;
output out=diagnostics predicted=yhat residual=residual
stdr=stderr_residual student=student ;
run;

data res;
set diagnostics;
run;

proc print data=res;
var adexpense revenue yhat residual stderr_residual student;
run;&lt;/PRE&gt;&lt;P&gt;【Output】&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JenjenL_0-1614397987665.png" style="width: 429px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55260i51FF8C600F90707D/image-dimensions/429x925?v=v2" width="429" height="925" role="button" title="JenjenL_0-1614397987665.png" alt="JenjenL_0-1614397987665.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Feb 2021 08:34:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Why-standard-error-of-the-residual-differs-in-the-same-sample/m-p/722324#M34996</guid>
      <dc:creator>JenjenL</dc:creator>
      <dc:date>2021-02-27T08:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Why standard error of the residual differs in the same sample?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Why-standard-error-of-the-residual-differs-in-the-same-sample/m-p/722358#M34998</link>
      <description>&lt;P&gt;Look for the role of &lt;EM&gt;leverage values&lt;/EM&gt; in the definition of the standard error of the residual:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.3&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_introreg_sect036.htm&amp;amp;locale=en" target="_self"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.3&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_introreg_sect036.htm&amp;amp;locale=en&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Feb 2021 20:45:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Why-standard-error-of-the-residual-differs-in-the-same-sample/m-p/722358#M34998</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2021-02-27T20:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: Why standard error of the residual differs in the same sample?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Why-standard-error-of-the-residual-differs-in-the-same-sample/m-p/722376#M35001</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/462"&gt;@PGStats&lt;/a&gt;&amp;nbsp; Thank you for the solution!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Feb 2021 00:33:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Why-standard-error-of-the-residual-differs-in-the-same-sample/m-p/722376#M35001</guid>
      <dc:creator>JenjenL</dc:creator>
      <dc:date>2021-02-28T00:33:58Z</dc:date>
    </item>
  </channel>
</rss>

