<?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: How to calculate mean error(ME) in sas in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-mean-error-ME-in-sas/m-p/703123#M33984</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;If y sub i is an individual value and the y hat is the predicted then you are looking at residuals and that looks like the mean of residuals. If so, then you run a regression and get the residuals in the output. Then take the mean of the residual.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Which is zero for many types of models. No need to compute it (if this comes from one of those types of models)&lt;/P&gt;</description>
    <pubDate>Wed, 02 Dec 2020 15:35:20 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2020-12-02T15:35:20Z</dc:date>
    <item>
      <title>How to calculate mean error(ME) in sas</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-mean-error-ME-in-sas/m-p/703114#M33981</link>
      <description>&lt;P&gt;Hi everyone, does anyone know how to calculate mean error(ME) in SAS. I checked the proc means, its statistical list does not contain ME. So I'm wondering are there any procedures that can calculate ME directly? Thanks for any hints.&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="Cecillia_Mao_0-1606921855724.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/52253i24FBE37BBE43C9AD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cecillia_Mao_0-1606921855724.png" alt="Cecillia_Mao_0-1606921855724.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 15:12:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-mean-error-ME-in-sas/m-p/703114#M33981</guid>
      <dc:creator>Cecillia_Mao</dc:creator>
      <dc:date>2020-12-02T15:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate mean error(ME) in sas</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-mean-error-ME-in-sas/m-p/703118#M33982</link>
      <description>&lt;P&gt;In a data step, compute the value of y minus y-hat. Then in PROC MEANS or PROC SUMMARY, compute the mean of this difference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that's not what you are looking for, then a&amp;nbsp;few more details would help. What is meant in the formula by y-hat? Does it have to do with predicting (the word "prediction" appears) from a model? If so, what type of model (and what SAS PROC) creates this model? What are the variable names in your SAS data set?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 15:26:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-mean-error-ME-in-sas/m-p/703118#M33982</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-12-02T15:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate mean error(ME) in sas</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-mean-error-ME-in-sas/m-p/703121#M33983</link>
      <description>&lt;P&gt;If y sub i is an individual value and the y hat is the predicted then you are looking at residuals and that looks like the mean of residuals. If so, then you run a regression and get the residuals in the output. Then take the mean of the residual.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 15:33:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-mean-error-ME-in-sas/m-p/703121#M33983</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-12-02T15:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate mean error(ME) in sas</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-mean-error-ME-in-sas/m-p/703123#M33984</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;If y sub i is an individual value and the y hat is the predicted then you are looking at residuals and that looks like the mean of residuals. If so, then you run a regression and get the residuals in the output. Then take the mean of the residual.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Which is zero for many types of models. No need to compute it (if this comes from one of those types of models)&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 15:35:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-mean-error-ME-in-sas/m-p/703123#M33984</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-12-02T15:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate mean error(ME) in sas</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-mean-error-ME-in-sas/m-p/703124#M33985</link>
      <description>&lt;P&gt;For the Mean error you need an observed/recorded value minus the predicted value, which comes from a model.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you only have a single value, the typical estimate ends up being the mean, so then your formula changes to&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;1/n*sum(observed - mean(x))&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;which has a value of 0 always. I'll leave the algebra as an exercise for you, or for you to google at least &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unless you have a modeled value, this is a 'trick' question. This is why the mean squared error or the mean absolute error measures are used instead.&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/275960"&gt;@Cecillia_Mao&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi everyone, does anyone know how to calculate mean error(ME) in SAS. I checked the proc means, its statistical list does not contain ME. So I'm wondering are there any procedures that can calculate ME directly? Thanks for any hints.&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="Cecillia_Mao_0-1606921855724.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/52253i24FBE37BBE43C9AD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cecillia_Mao_0-1606921855724.png" alt="Cecillia_Mao_0-1606921855724.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 15:38:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-mean-error-ME-in-sas/m-p/703124#M33985</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-12-02T15:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate mean error(ME) in sas</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-mean-error-ME-in-sas/m-p/703132#M33988</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;If y sub i is an individual value and the y hat is the predicted then you are looking at residuals and that looks like the mean of residuals. If so, then you run a regression and get the residuals in the output. Then take the mean of the residual.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Which is zero for many types of models. No need to compute it (if this comes from one of those types of models)&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yep. Which is partially why I was asking what the y values in the formula represent.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 16:01:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-mean-error-ME-in-sas/m-p/703132#M33988</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-12-02T16:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate mean error(ME) in sas</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-mean-error-ME-in-sas/m-p/703357#M34006</link>
      <description>If you have two columns Y and Y_Hat:&lt;BR /&gt;&lt;BR /&gt;proc sql;&lt;BR /&gt;select mean(Y-Y_Hat) from have;&lt;BR /&gt;quit;</description>
      <pubDate>Thu, 03 Dec 2020 13:00:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-mean-error-ME-in-sas/m-p/703357#M34006</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-12-03T13:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate mean error(ME) in sas</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-mean-error-ME-in-sas/m-p/703924#M34035</link>
      <description>Thank you Ballardw, I'm sorry for the late reply. I was confused with the following two staitistics: "mean error" and "mean deviation" mean deviation,which is sum(X-X̄)/n. Thanks for clarification.</description>
      <pubDate>Sun, 06 Dec 2020 14:08:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-mean-error-ME-in-sas/m-p/703924#M34035</guid>
      <dc:creator>Cecillia_Mao</dc:creator>
      <dc:date>2020-12-06T14:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate mean error(ME) in sas</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-mean-error-ME-in-sas/m-p/703925#M34036</link>
      <description>Thank you so much Reeza. That totally make sense why mean squared error or the mean absolute error measures are used more often. I was supposed to ask how to calculate mean deviation. Unlike to standard deviation, I believe  meand deviation can't be calculated using proc means options directly.</description>
      <pubDate>Sun, 06 Dec 2020 14:23:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-mean-error-ME-in-sas/m-p/703925#M34036</guid>
      <dc:creator>Cecillia_Mao</dc:creator>
      <dc:date>2020-12-06T14:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate mean error(ME) in sas</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-mean-error-ME-in-sas/m-p/703926#M34037</link>
      <description>Thanks a lot! I really appreciate it! Sometimes, if there is no available options, we do need to calculated step by steps.</description>
      <pubDate>Sun, 06 Dec 2020 14:24:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-mean-error-ME-in-sas/m-p/703926#M34037</guid>
      <dc:creator>Cecillia_Mao</dc:creator>
      <dc:date>2020-12-06T14:24:49Z</dc:date>
    </item>
  </channel>
</rss>

