<?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: SD in PROC SURVEYMEANS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SD-in-PROC-SURVEYMEANS/m-p/730302#M227386</link>
    <description>&lt;P&gt;PROC SURVEYMEANS DATA=SASHELP.CLASS nobs mean SUM df CLM ;&lt;BR /&gt;VAR AGE HEIGHT;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;I have changed n to nobs and STD to SUM. The code has worked for me.&lt;/P&gt;&lt;P&gt;“If you specify the statistic-keywords of your interest including SUM (i.e., estimated population total when the appropriate sampling weights are used) in that statement, the procedure computes STD by default.” (SAS Documentation).&lt;/P&gt;</description>
    <pubDate>Wed, 31 Mar 2021 05:04:25 GMT</pubDate>
    <dc:creator>pkm_edu</dc:creator>
    <dc:date>2021-03-31T05:04:25Z</dc:date>
    <item>
      <title>SD in PROC SURVEYMEANS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SD-in-PROC-SURVEYMEANS/m-p/730299#M227385</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hello, I want to get MEAN and SD from PROC SURVEYMEANS (my original data is a survey with weights). In PROC MEANS, STD calculates standard deviation; but in PROC SURVEYMEANS, STD calculates&amp;nbsp;the standard deviation of SUM. Also, in the following example, MEAN does not calculate the mean.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do I calculate the MEAN and STD for a variable in PROC SURVEYMEANS?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC MEANS DATA=SASHELP.CLASS NONOBS MAXDEC=2 SUM MEAN STD ; 
VAR AGE HEIGHT; 
RUN; 
 
PROC SURVEYMEANS DATA=SASHELP.CLASS n mean STD df CLM ; 
VAR AGE HEIGHT; 
RUN;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 31 Mar 2021 04:16:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SD-in-PROC-SURVEYMEANS/m-p/730299#M227385</guid>
      <dc:creator>Emma_at_SAS</dc:creator>
      <dc:date>2021-03-31T04:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: SD in PROC SURVEYMEANS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SD-in-PROC-SURVEYMEANS/m-p/730302#M227386</link>
      <description>&lt;P&gt;PROC SURVEYMEANS DATA=SASHELP.CLASS nobs mean SUM df CLM ;&lt;BR /&gt;VAR AGE HEIGHT;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;I have changed n to nobs and STD to SUM. The code has worked for me.&lt;/P&gt;&lt;P&gt;“If you specify the statistic-keywords of your interest including SUM (i.e., estimated population total when the appropriate sampling weights are used) in that statement, the procedure computes STD by default.” (SAS Documentation).&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 05:04:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SD-in-PROC-SURVEYMEANS/m-p/730302#M227386</guid>
      <dc:creator>pkm_edu</dc:creator>
      <dc:date>2021-03-31T05:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: SD in PROC SURVEYMEANS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SD-in-PROC-SURVEYMEANS/m-p/730414#M227443</link>
      <description>&lt;P&gt;Thank you, pkm_edu. Yes, you are right. NOBS is the appropriate keyword to ask for the number of observations. That solves the error for mean.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It sounds I need to use this approach to estimate SD approach&amp;nbsp;&lt;A href="https://support.sas.com/kb/45/701.html#:~:text=Use%20PROC%20SURVEYMEANS%20to%20estimate%20the%20weighted%20total%20of%20the,the%20finite%20population%20standard%20deviation" target="_blank"&gt;https://support.sas.com/kb/45/701.html#:~:text=Use%20PROC%20SURVEYMEANS%20to%20estimate%20the%20weighted%20total%20of%20the,the%20finite%20population%20standard%20deviation&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 15:20:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SD-in-PROC-SURVEYMEANS/m-p/730414#M227443</guid>
      <dc:creator>Emma_at_SAS</dc:creator>
      <dc:date>2021-03-31T15:20:07Z</dc:date>
    </item>
  </channel>
</rss>

