<?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: Assigning 2 decimal places for output of Std error of Mean and Std Error of Sum in PROC SURVEYME in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Assigning-2-decimal-places-for-output-of-Std-error-of-Mean-and/m-p/918433#M361773</link>
    <description>&lt;P&gt;Write the results to a SAS data set, then apply format 12.2 (or any other format you would like) to the output data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods select none;
ods output statistics=statistics;
/* Run PROC SURVEYMEANS with weights */
proc surveymeans data=TEST min max sum std mean stderr;
var HEIGHT;
weight WEIGHT;
run;
ods select all;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 29 Feb 2024 16:42:50 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2024-02-29T16:42:50Z</dc:date>
    <item>
      <title>Assigning 2 decimal places for output of Std error of Mean and Std Error of Sum in PROC SURVEYMEANS.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Assigning-2-decimal-places-for-output-of-Std-error-of-Mean-and/m-p/918431#M361771</link>
      <description>&lt;P&gt;I want to limit the decimal places to 2 for the output for STD ERROR of SUM from PROC SURVEYMEANS.&lt;/P&gt;
&lt;P&gt;In the following example the Std Error of Sum =&amp;nbsp;267.928448 but I want it to be&amp;nbsp;267.93. Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data TEST;&lt;BR /&gt;do ID = 1 to 30;&lt;BR /&gt;HEIGHT = round(130 + rand('Uniform') * 50, 0.01); /* Heights with 2 decimal places */&lt;BR /&gt;WEIGHT = rand('Uniform'); /* Generating random survey weights */&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;/* Run PROC SURVEYMEANS with weights */&lt;BR /&gt;proc surveymeans data=TEST min max sum std mean stderr plots=none;&lt;BR /&gt;var HEIGHT;&lt;BR /&gt;weight WEIGHT;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 16:23:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Assigning-2-decimal-places-for-output-of-Std-error-of-Mean-and/m-p/918431#M361771</guid>
      <dc:creator>Emma_at_SAS</dc:creator>
      <dc:date>2024-02-29T16:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning 2 decimal places for output of Std error of Mean and Std Error of Sum in PROC SURVEYME</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Assigning-2-decimal-places-for-output-of-Std-error-of-Mean-and/m-p/918433#M361773</link>
      <description>&lt;P&gt;Write the results to a SAS data set, then apply format 12.2 (or any other format you would like) to the output data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods select none;
ods output statistics=statistics;
/* Run PROC SURVEYMEANS with weights */
proc surveymeans data=TEST min max sum std mean stderr;
var HEIGHT;
weight WEIGHT;
run;
ods select all;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Feb 2024 16:42:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Assigning-2-decimal-places-for-output-of-Std-error-of-Mean-and/m-p/918433#M361773</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-02-29T16:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning 2 decimal places for output of Std error of Mean and Std Error of Sum in PROC SURVEYME</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Assigning-2-decimal-places-for-output-of-Std-error-of-Mean-and/m-p/918440#M361776</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is interesting that the output from ODS output renames Std Error of MEan to StdErr and renames Std Error of Sum to StdDev and I need to format StdDev. But that solves my problem. Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Emma_at_SAS_0-1709226062316.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/94260i9B171E10164092A9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Emma_at_SAS_0-1709226062316.png" alt="Emma_at_SAS_0-1709226062316.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 17:04:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Assigning-2-decimal-places-for-output-of-Std-error-of-Mean-and/m-p/918440#M361776</guid>
      <dc:creator>Emma_at_SAS</dc:creator>
      <dc:date>2024-02-29T17:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning 2 decimal places for output of Std error of Mean and Std Error of Sum in PROC SURVEYME</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Assigning-2-decimal-places-for-output-of-Std-error-of-Mean-and/m-p/918444#M361780</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/84351"&gt;@Emma_at_SAS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you do a PROC PRINT here, use the LABEL option&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data=statistics label;
    format stddev stderr 12.2;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Feb 2024 17:10:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Assigning-2-decimal-places-for-output-of-Std-error-of-Mean-and/m-p/918444#M361780</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-02-29T17:10:54Z</dc:date>
    </item>
  </channel>
</rss>

