<?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: PROC SURVEYMEANS gives incorrect grand total estim when more than 1 replication (iteration) invo in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-SURVEYMEANS-gives-incorrect-grand-total-estim-when-more/m-p/345061#M273041</link>
    <description>&lt;P&gt;Two quick questions:&lt;/P&gt;
&lt;P&gt;1. Is there a reason you used&amp;nbsp;Rendtel.mz2002 TWICE in creating the dataset mz?&lt;/P&gt;
&lt;P&gt;2. Your initial use of proc surveyselect uses mz2. Where did that file come from?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Mar 2017 16:31:00 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2017-03-28T16:31:00Z</dc:date>
    <item>
      <title>PROC SURVEYMEANS gives incorrect grand total estim when more than 1 replication (iteration) involved</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SURVEYMEANS-gives-incorrect-grand-total-estim-when-more/m-p/344408#M273038</link>
      <description>&lt;P&gt;hi, everyone. I need to estimate the grand total income of my population. I&amp;nbsp;&lt;STRONG&gt;can&lt;/STRONG&gt;&amp;nbsp;calculate the real value of t&lt;SPAN&gt;he population&lt;/SPAN&gt;. In the code attached (Projekt 4) I'm importing the data contained in the attached doc (Projekt Data.csv). When I have the Proc Surveyselect with reps=1 (line 109) and then use Proc Surveymeans, the result of the MEANS Proc yields an approx estimate of t&lt;SPAN&gt;he actual value which for that estimate is more or less credible&lt;/SPAN&gt;.&amp;nbsp;however, if in line 109 reps=2, the estimate becomes twice bigger, approx 3 times bigger&amp;nbsp;for three iterations, etc. In other words, the estimates sort of sum up.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas of why this is the case??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.S. I noticed though that if I use a command &lt;STRONG&gt;mean&lt;/STRONG&gt; instead of &lt;STRONG&gt;sum&amp;nbsp;&lt;/STRONG&gt;in line 195, the estimate of the mean income doesn't add up when increasing&amp;nbsp;iterations. Also, the variance goes down with more iterations, thus making me feel that it does the right thing. So, it's the total income that's &lt;U&gt;not&lt;/U&gt; working...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using SAS Studio using an internet browser. Free for students.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd be grateful for any kind of&amp;nbsp;help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Mar 2017 12:28:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SURVEYMEANS-gives-incorrect-grand-total-estim-when-more/m-p/344408#M273038</guid>
      <dc:creator>Lolapo</dc:creator>
      <dc:date>2017-03-26T12:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SURVEYMEANS gives incorrect grand total estim when more than 1 replication (iteration) invo</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SURVEYMEANS-gives-incorrect-grand-total-estim-when-more/m-p/344431#M273039</link>
      <description>&lt;P&gt;You attached two copies of your data, rather than your data and code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Mar 2017 17:52:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SURVEYMEANS-gives-incorrect-grand-total-estim-when-more/m-p/344431#M273039</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-03-26T17:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SURVEYMEANS gives incorrect grand total estim when more than 1 replication (iteration) invo</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SURVEYMEANS-gives-incorrect-grand-total-estim-when-more/m-p/344915#M273040</link>
      <description>&lt;P&gt;Oh, thanks a lot. I've attached the code now.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2017 10:10:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SURVEYMEANS-gives-incorrect-grand-total-estim-when-more/m-p/344915#M273040</guid>
      <dc:creator>Lolapo</dc:creator>
      <dc:date>2017-03-28T10:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SURVEYMEANS gives incorrect grand total estim when more than 1 replication (iteration) invo</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SURVEYMEANS-gives-incorrect-grand-total-estim-when-more/m-p/345061#M273041</link>
      <description>&lt;P&gt;Two quick questions:&lt;/P&gt;
&lt;P&gt;1. Is there a reason you used&amp;nbsp;Rendtel.mz2002 TWICE in creating the dataset mz?&lt;/P&gt;
&lt;P&gt;2. Your initial use of proc surveyselect uses mz2. Where did that file come from?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2017 16:31:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SURVEYMEANS-gives-incorrect-grand-total-estim-when-more/m-p/345061#M273041</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-03-28T16:31:00Z</dc:date>
    </item>
  </channel>
</rss>

