<?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: Which formula to use? in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Which-formula-to-use/m-p/307236#M20785</link>
    <description>&lt;P&gt;To a statistician, variance is always positive. It looks like you are just subtracting one year from another. &amp;nbsp;(That might be the way accountants define variance, I don't know.)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/proc/68954/HTML/default/viewer.htm#p0v0y1on1hbxukn0zqgsp5ky8hc0.htm" target="_self"&gt;The formulas for most descriptive statistics in SAS&lt;/A&gt; are in the documentation.&lt;/P&gt;
&lt;P&gt;Recall that if you have &lt;EM&gt;n&lt;/EM&gt;&amp;nbsp;nonmissing values, you can compute the variance of those numbers by&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) Compute the mean Xbar.&lt;/P&gt;
&lt;P&gt;2) Compute the &lt;EM&gt;n&lt;/EM&gt; deviances: x[i] - Xbar&lt;/P&gt;
&lt;P&gt;3) Sum the squared deviances: sum( (&lt;SPAN&gt;x[i] - Xbar)**2)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;4) Divide by &lt;EM&gt;n&lt;/EM&gt;-1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It's not clear to me what you are trying to accomplish.&amp;nbsp;For what number are you trying to find the variance? T&lt;/SPAN&gt;he differences?&lt;/P&gt;</description>
    <pubDate>Tue, 25 Oct 2016 19:59:44 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2016-10-25T19:59:44Z</dc:date>
    <item>
      <title>Which formula to use?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Which-formula-to-use/m-p/307190#M20779</link>
      <description>&lt;P&gt;I have posted a before and after look.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the after I have highlighted the formula I am trying to create.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Trying to not only do a variance line but also a YTD variance..&lt;/P&gt;&lt;P&gt;So right now we are in period 5 (Oct) Next time I run it I will be in period 6 (Nov)&lt;/P&gt;&lt;P&gt;I am not at all sure what formula to use.. I have tried an iif statement and that didn't work..&lt;/P&gt;&lt;P&gt;help please.&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13077i96B90E54B8A84680/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="After.JPG" title="After.JPG" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13078i866ED76F21FFF24A/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Before.JPG" title="Before.JPG" /&gt;</description>
      <pubDate>Tue, 25 Oct 2016 17:40:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Which-formula-to-use/m-p/307190#M20779</guid>
      <dc:creator>kcevans</dc:creator>
      <dc:date>2016-10-25T17:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: Which formula to use?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Which-formula-to-use/m-p/307236#M20785</link>
      <description>&lt;P&gt;To a statistician, variance is always positive. It looks like you are just subtracting one year from another. &amp;nbsp;(That might be the way accountants define variance, I don't know.)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/proc/68954/HTML/default/viewer.htm#p0v0y1on1hbxukn0zqgsp5ky8hc0.htm" target="_self"&gt;The formulas for most descriptive statistics in SAS&lt;/A&gt; are in the documentation.&lt;/P&gt;
&lt;P&gt;Recall that if you have &lt;EM&gt;n&lt;/EM&gt;&amp;nbsp;nonmissing values, you can compute the variance of those numbers by&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) Compute the mean Xbar.&lt;/P&gt;
&lt;P&gt;2) Compute the &lt;EM&gt;n&lt;/EM&gt; deviances: x[i] - Xbar&lt;/P&gt;
&lt;P&gt;3) Sum the squared deviances: sum( (&lt;SPAN&gt;x[i] - Xbar)**2)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;4) Divide by &lt;EM&gt;n&lt;/EM&gt;-1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It's not clear to me what you are trying to accomplish.&amp;nbsp;For what number are you trying to find the variance? T&lt;/SPAN&gt;he differences?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2016 19:59:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Which-formula-to-use/m-p/307236#M20785</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-10-25T19:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Which formula to use?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Which-formula-to-use/m-p/307684#M20799</link>
      <description>&lt;P&gt;Thank you so much for your reply!&lt;/P&gt;&lt;P&gt;Sorry new here I just now saw that you replied.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the first spreadsheet "Before" I don't have the variance as displayed in "After" which definition for variance (highlighted in yellow)&amp;nbsp;for this purpose being:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fiscal year 2017 (Periods) Diamonds - Fiscal Year 2016 (Periods) Diamonds = how many more/less diamond orders we have for the current&amp;nbsp;period "month" in correlation to the same period last year.&lt;/P&gt;&lt;P&gt;Also, Fiscal year 2017 (Periods) Pearls - Fiscal Year (Periods) 2016 Pearls = how many more/less Pearl orders we have for the current&amp;nbsp;period "month" in correlation to the same period last year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I only want the variance to display through current period I don't want it to calculate for months that have not occurred yet.&amp;nbsp; So for example period 6 (November) has not occurred yet so it would be blank (See After example highlighted in yellow).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is easy for me to do in an excel spreadsheet but I need to build it in Enterprise Guide.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again for all your assitance!&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2016 16:13:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Which-formula-to-use/m-p/307684#M20799</guid>
      <dc:creator>kcevans</dc:creator>
      <dc:date>2016-10-27T16:13:43Z</dc:date>
    </item>
  </channel>
</rss>

