<?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: Percentiles from proc surveymeans differ slightly from proc means in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Percentiles-from-proc-surveymeans-differ-slightly-from-proc/m-p/522295#M73440</link>
    <description>&lt;P&gt;The documentation for Surveymeans includes:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC SURVEYMEANS uses Woodruff’s method (Dorfman and Valliant &lt;A href="http://127.0.0.1:52292/help/statug.hlp/statug_surveymeans_references.htm#statug_surveymeansdorf_a93" target="_blank"&gt;1993&lt;/A&gt;; Särndal, Swensson, and Wretman &lt;A href="http://127.0.0.1:52292/help/statug.hlp/statug_surveymeans_references.htm#statug_surveymeanssarn_c92" target="_blank"&gt;1992&lt;/A&gt;; Francisco and Fuller &lt;A href="http://127.0.0.1:52292/help/statug.hlp/statug_surveymeans_references.htm#statug_surveymeansfran_c91" target="_blank"&gt;1991&lt;/A&gt;) to estimate the variances of quantiles. For more details, see the section &lt;A href="http://127.0.0.1:52292/help/statug.hlp/statug_surveymeans_details06.htm#statug.surveymeans.quantiledetails" target="_blank"&gt;Quantiles&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I suspect that percentiles are calculated somewhat differently to account for the additional things Surveymeans has to address.&lt;/P&gt;</description>
    <pubDate>Tue, 18 Dec 2018 17:58:15 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2018-12-18T17:58:15Z</dc:date>
    <item>
      <title>Percentiles from proc surveymeans differ slightly from proc means</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Percentiles-from-proc-surveymeans-differ-slightly-from-proc/m-p/522284#M73439</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting slightly different values for percentiles of a continuous variable when I use proc surveymeans vs. proc means. I meant to calculate crude geometric means for my variable (Serum_conc) and also get percentiles of&amp;nbsp;its distribution, so I&amp;nbsp;did not enter any sampling weights, stratum, cluster or finite population correction into proc surveymeans. The reason to use proc surveymeans is&amp;nbsp;to&amp;nbsp; calculate survey-method adjusted GMs and compare them to the crude estimates, so I started with the crude GM calculations and also included percentiles. I expected proc surveymeans to calculate identical percentiles for the same variable as proc means, but the values differ slightly in the decimals -- do the two procedures use different default calculations for percentiles? My code is below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC MEANS DATA=datafile n nmiss min p25 p50 p75 p90 p95 max;&lt;BR /&gt;var Serum_conc;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC SURVEYMEANS DATA=datafile&amp;nbsp;GEOMEAN GMCLM NMISS percentile=(25,50,75,90,95) max;&lt;BR /&gt;VAR Serum_conc;&lt;BR /&gt;ODS OUTPUT Statistics=dataset1 GeometricMeans=dataset2; *Specify ODS table names as output datasets;&lt;BR /&gt;RUN;&lt;BR /&gt;*Print temporary datasets/tables;&lt;BR /&gt;PROC PRINT data=dataset1;&lt;BR /&gt;RUN;&lt;BR /&gt;PROC PRINT data=dataset2;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Dec 2018 17:15:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Percentiles-from-proc-surveymeans-differ-slightly-from-proc/m-p/522284#M73439</guid>
      <dc:creator>Monicapn</dc:creator>
      <dc:date>2018-12-18T17:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: Percentiles from proc surveymeans differ slightly from proc means</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Percentiles-from-proc-surveymeans-differ-slightly-from-proc/m-p/522295#M73440</link>
      <description>&lt;P&gt;The documentation for Surveymeans includes:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC SURVEYMEANS uses Woodruff’s method (Dorfman and Valliant &lt;A href="http://127.0.0.1:52292/help/statug.hlp/statug_surveymeans_references.htm#statug_surveymeansdorf_a93" target="_blank"&gt;1993&lt;/A&gt;; Särndal, Swensson, and Wretman &lt;A href="http://127.0.0.1:52292/help/statug.hlp/statug_surveymeans_references.htm#statug_surveymeanssarn_c92" target="_blank"&gt;1992&lt;/A&gt;; Francisco and Fuller &lt;A href="http://127.0.0.1:52292/help/statug.hlp/statug_surveymeans_references.htm#statug_surveymeansfran_c91" target="_blank"&gt;1991&lt;/A&gt;) to estimate the variances of quantiles. For more details, see the section &lt;A href="http://127.0.0.1:52292/help/statug.hlp/statug_surveymeans_details06.htm#statug.surveymeans.quantiledetails" target="_blank"&gt;Quantiles&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I suspect that percentiles are calculated somewhat differently to account for the additional things Surveymeans has to address.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Dec 2018 17:58:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Percentiles-from-proc-surveymeans-differ-slightly-from-proc/m-p/522295#M73440</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-12-18T17:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: Percentiles from proc surveymeans differ slightly from proc means</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Percentiles-from-proc-surveymeans-differ-slightly-from-proc/m-p/522302#M73441</link>
      <description>&lt;P&gt;Thank you. I had found that in the SAS documentation for each procedure -- the formula from proc means is pretty straight forward and the formula from proc surveymeans uses probability. We decided to go ahead and use the proc surveymeans procedure for the percentiles, since we are using it to estimate the geometric means, for consistency.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Dec 2018 18:52:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Percentiles-from-proc-surveymeans-differ-slightly-from-proc/m-p/522302#M73441</guid>
      <dc:creator>Monicapn</dc:creator>
      <dc:date>2018-12-18T18:52:46Z</dc:date>
    </item>
  </channel>
</rss>

