<?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: Studentized residuals calculation is different in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Studentized-residuals-calculation-is-different/m-p/395232#M20638</link>
    <description>&lt;P&gt;Perhaps you meant s[i] instead of sigma[i]? Here is a &lt;A href="http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_introreg_sect036.htm" target="_self"&gt;link to the SAS&amp;nbsp;documentation on the regression formulas.&lt;/A&gt;&amp;nbsp;It explicitly says that s^2 "is the estimate of the residual variance (the mean squared error)." &amp;nbsp;So these two sources you quote seem to be using the same formula.&lt;/P&gt;</description>
    <pubDate>Tue, 12 Sep 2017 19:05:42 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2017-09-12T19:05:42Z</dc:date>
    <item>
      <title>Studentized residuals calculation is different</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Studentized-residuals-calculation-is-different/m-p/395171#M20631</link>
      <description>&lt;P&gt;Dear Experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In sas, using "proc reg" produces RSTUDENT = ri / sigma(i) *sqrt(1-hi) where sigma(i) is the sum of squared residuals divided by its degree of freedom.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, in&amp;nbsp;&lt;A href="https://onlinecourses.science.psu.edu/stat462/node/247" target="_blank"&gt;https://onlinecourses.science.psu.edu/stat462/node/247&lt;/A&gt;. The externally studentized residual is calculated as ti = ei / sqrt(MSE(i) * (1-hi)) where ei is yi - y^(i) and MSE(i) is the mean square error based on the estimated model.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So sigma(i) not equal to MSE(i). Which method is correct or better?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;LL&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 17:02:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Studentized-residuals-calculation-is-different/m-p/395171#M20631</guid>
      <dc:creator>CheerfulChu</dc:creator>
      <dc:date>2017-09-12T17:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Studentized residuals calculation is different</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Studentized-residuals-calculation-is-different/m-p/395182#M20636</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;sqrt(MSE(i)) is an estimate of sigma(i).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 17:43:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Studentized-residuals-calculation-is-different/m-p/395182#M20636</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2017-09-12T17:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Studentized residuals calculation is different</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Studentized-residuals-calculation-is-different/m-p/395232#M20638</link>
      <description>&lt;P&gt;Perhaps you meant s[i] instead of sigma[i]? Here is a &lt;A href="http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_introreg_sect036.htm" target="_self"&gt;link to the SAS&amp;nbsp;documentation on the regression formulas.&lt;/A&gt;&amp;nbsp;It explicitly says that s^2 "is the estimate of the residual variance (the mean squared error)." &amp;nbsp;So these two sources you quote seem to be using the same formula.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 19:05:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Studentized-residuals-calculation-is-different/m-p/395232#M20638</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-09-12T19:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: Studentized residuals calculation is different</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Studentized-residuals-calculation-is-different/m-p/395337#M20642</link>
      <description>&lt;P&gt;From your sas document,&lt;/P&gt;
&lt;PRE&gt;STDERR(RESIDi) = sqrt(s^2*(1-hi) /wi),&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;it is weighted MSE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The other source I quote is&lt;/P&gt;
&lt;PRE&gt;sqrt(MSE *(1-hi))&lt;/PRE&gt;
&lt;P&gt;. It is not weighted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sas used the weight to modify the standard error of residual. After I included the weight, I can get studentized residual in Sas. If I dont, I would get the studentized residual in another software. This is my program.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;        proc reg data=work.sample1;
            model Y1 = X Z/noint;  
            weight GLSWGT1;
            output out=xoutputs p=xpred stdr=xstdr h=xh student=xstudent;                                
          run;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Question: So which is correct or better? Using weighted MSE or not? The readings I came across never show standard error of residual, STDERR, being scaled by weight.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 23:25:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Studentized-residuals-calculation-is-different/m-p/395337#M20642</guid>
      <dc:creator>CheerfulChu</dc:creator>
      <dc:date>2017-09-12T23:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Studentized residuals calculation is different</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Studentized-residuals-calculation-is-different/m-p/395342#M20643</link>
      <description>&lt;P&gt;Yes, the documentation&amp;nbsp;uses the more general formula, but when the weight is omitted or is set to 1 they are the same. &lt;A href="http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_introreg_sect029.htm" target="_self"&gt;The first&amp;nbsp;section of the doc that I linked to&lt;/A&gt; says "Usually, w_ i=1 for all i and thus sigma ^2 is the common, constant variance."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you read the formulas, mentally replace the weights by 1. The weights drop out and the formulas are equivalent.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2017 00:11:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Studentized-residuals-calculation-is-different/m-p/395342#M20643</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-09-13T00:11:02Z</dc:date>
    </item>
  </channel>
</rss>

