<?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: Aggregate sum of all observations decreases when I add variables to class statement. Why? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Aggregate-sum-of-all-observations-decreases-when-I-add-variables/m-p/197999#M49465</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have missing values in current_ctg and/or yearmo?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Aug 2015 18:29:22 GMT</pubDate>
    <dc:creator>JamesM1962</dc:creator>
    <dc:date>2015-08-13T18:29:22Z</dc:date>
    <item>
      <title>Aggregate sum of all observations decreases when I add variables to class statement. Why?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Aggregate-sum-of-all-observations-decreases-when-I-add-variables/m-p/197997#M49463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why would the difference between these two pieces of code cause the aggregate sum of all observations' mmos to be different? &lt;/P&gt;&lt;P&gt;I understand that we shouldn't expect the observations to individually be the same, but shouldn't the aggregate totals be?s&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;proc summary noprint missing nway data=v_mmr_&amp;amp;state;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; Class inc_year lob plan_number SCC tin tin_nm_rllp stat;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; Var mmos_:; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; output out=mmrsum_&amp;amp;state (drop=_type_ _freq_) sum=;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;quit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;proc summary noprint missing nway data=v_mmr_&amp;amp;state;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; Class inc_year lob plan_number SCC tin tin_nm_rllp stat current_ctg yearmo;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; Var mmos_:; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; output out=mmrsum_&amp;amp;state (drop=_type_ _freq_) sum=;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;quit;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 03:41:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Aggregate-sum-of-all-observations-decreases-when-I-add-variables/m-p/197997#M49463</guid>
      <dc:creator>acemanhattan</dc:creator>
      <dc:date>2015-08-13T03:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate sum of all observations decreases when I add variables to class statement. Why?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Aggregate-sum-of-all-observations-decreases-when-I-add-variables/m-p/197998#M49464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The totals should be the same, sort of.&amp;nbsp; A couple of related questions, though:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How different are they?&lt;/P&gt;&lt;P&gt;How many observations are there in each output data set?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you're already using the MISSING option, I would suspect this is a matter of floating point arithmetic.&amp;nbsp; Adding up imprecisely stored sets of values should get very nearly (but not necessarily exactly) the same total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 17:02:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Aggregate-sum-of-all-observations-decreases-when-I-add-variables/m-p/197998#M49464</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2015-08-13T17:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate sum of all observations decreases when I add variables to class statement. Why?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Aggregate-sum-of-all-observations-decreases-when-I-add-variables/m-p/197999#M49465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have missing values in current_ctg and/or yearmo?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 18:29:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Aggregate-sum-of-all-observations-decreases-when-I-add-variables/m-p/197999#M49465</guid>
      <dc:creator>JamesM1962</dc:creator>
      <dc:date>2015-08-13T18:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate sum of all observations decreases when I add variables to class statement. Why?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Aggregate-sum-of-all-observations-decreases-when-I-add-variables/m-p/198000#M49466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I think the issue is that when I tried to compare the two datasets in Excel, the first dataset is small enough for Excel but the second one isn't. &lt;/P&gt;&lt;P&gt;When I compare them in SAS they end up being the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 20:20:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Aggregate-sum-of-all-observations-decreases-when-I-add-variables/m-p/198000#M49466</guid>
      <dc:creator>acemanhattan</dc:creator>
      <dc:date>2015-08-13T20:20:07Z</dc:date>
    </item>
  </channel>
</rss>

