<?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: I have to change my code so that my error term no longer has a mean of zero, confused how? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/I-have-to-change-my-code-so-that-my-error-term-no-longer-has-a/m-p/532349#M145868</link>
    <description>Do the algebra. Take your initial equation, plug in the changes and simplify the equation. &lt;A href="https://www.reddit.com/r/statistics/comments/amg02y/what_happens_if_the_mean_of_the_error_term_u_is/?st=JROHNPEJ&amp;amp;sh=4dd6c948" target="_blank"&gt;https://www.reddit.com/r/statistics/comments/amg02y/what_happens_if_the_mean_of_the_error_term_u_is/?st=JROHNPEJ&amp;amp;sh=4dd6c948&lt;/A&gt;</description>
    <pubDate>Sun, 03 Feb 2019 05:51:37 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-02-03T05:51:37Z</dc:date>
    <item>
      <title>I have to change my code so that my error term no longer has a mean of zero, confused how?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-have-to-change-my-code-so-that-my-error-term-no-longer-has-a/m-p/532296#M145851</link>
      <description>&lt;P&gt;In my simulation exercise I have to change the error term in my code from&amp;nbsp;&lt;/P&gt;&lt;P&gt;data samples;&lt;BR /&gt;do samp = 1 to 1000;&lt;BR /&gt;do t = 1 to 100;&lt;BR /&gt;u = rannor(1996)*5;&lt;BR /&gt;x = 100 + 3*rannor(6991);&lt;BR /&gt;y = 10 + 0.5*x + u;&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data samples;&lt;BR /&gt;do samp = 1 to 1000;&lt;BR /&gt;do t = 1 to 100;&lt;BR /&gt;u = 3 + rannor(1996)*5;&lt;BR /&gt;x = 100 + 3*rannor(6991);&lt;BR /&gt;y = 10 + 0.5*x + u;&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I'm supposed to comment on the changes to the mean and variance of B1hat and B0hat. But the only thing that changed was the intercept's mean increased by 3. Not sure why. I thought a lot would change if I made the error code have a mean of 3 instead of a mean of zero. Am I doing something wrong with the code? The shape of the histogram for both B1hat and B0hat are still symmetric as well. I'm super confused.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Feb 2019 17:12:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-have-to-change-my-code-so-that-my-error-term-no-longer-has-a/m-p/532296#M145851</guid>
      <dc:creator>khalillx</dc:creator>
      <dc:date>2019-02-02T17:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: I have to change my code so that my error term no longer has a mean of zero, confused how?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-have-to-change-my-code-so-that-my-error-term-no-longer-has-a/m-p/532349#M145868</link>
      <description>Do the algebra. Take your initial equation, plug in the changes and simplify the equation. &lt;A href="https://www.reddit.com/r/statistics/comments/amg02y/what_happens_if_the_mean_of_the_error_term_u_is/?st=JROHNPEJ&amp;amp;sh=4dd6c948" target="_blank"&gt;https://www.reddit.com/r/statistics/comments/amg02y/what_happens_if_the_mean_of_the_error_term_u_is/?st=JROHNPEJ&amp;amp;sh=4dd6c948&lt;/A&gt;</description>
      <pubDate>Sun, 03 Feb 2019 05:51:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-have-to-change-my-code-so-that-my-error-term-no-longer-has-a/m-p/532349#M145868</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-02-03T05:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: I have to change my code so that my error term no longer has a mean of zero, confused how?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-have-to-change-my-code-so-that-my-error-term-no-longer-has-a/m-p/532375#M145879</link>
      <description>&lt;P&gt;You don't state that you are performing linear regression (are you?), but if you are, then the mean of the residuals is always zero. This is just plain old algebra, and there's no way to get any other mean of the residuals.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Feb 2019 12:05:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-have-to-change-my-code-so-that-my-error-term-no-longer-has-a/m-p/532375#M145879</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-02-03T12:05:55Z</dc:date>
    </item>
  </channel>
</rss>

