<?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 freq and standard error - rounded to two decimal places in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-freq-and-standard-error-rounded-to-two-decimal-places/m-p/523794#M73470</link>
    <description>&lt;P&gt;Is your question:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I obtain standard errors from PROC FREQ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The formula for the standard error of a proportion is the SE = sqrt( p*(1–p)/n ). You'd have to program this in a data step from the data set wt. After that, applying a format makes the result appear to have two decimal places.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the future, please type one SAS command per line, and type your SAS code into the box that appears when you click on the running man icon. Thank you.&lt;/P&gt;</description>
    <pubDate>Fri, 28 Dec 2018 19:15:58 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2018-12-28T19:15:58Z</dc:date>
    <item>
      <title>Proc freq and standard error - rounded to two decimal places</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-freq-and-standard-error-rounded-to-two-decimal-places/m-p/523789#M73469</link>
      <description>&lt;P&gt;I am using the following statement:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc freq data = merged16 stderr; tables DEGENDER AGE RACE ;&lt;BR /&gt;format DEGENDER $DEGENDER. AGE AGE. RACE RACE. ;run;&lt;BR /&gt;ods output OneWayFreqs = wt;run;&lt;BR /&gt;proc print data = wt label;format _numeric_ 10.2;var _numeric_; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I get sas to give me the standard error rounded to two decimal places along with frequencies with proc freq?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Dec 2018 18:41:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-freq-and-standard-error-rounded-to-two-decimal-places/m-p/523789#M73469</guid>
      <dc:creator>kgrover</dc:creator>
      <dc:date>2018-12-28T18:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Proc freq and standard error - rounded to two decimal places</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-freq-and-standard-error-rounded-to-two-decimal-places/m-p/523794#M73470</link>
      <description>&lt;P&gt;Is your question:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I obtain standard errors from PROC FREQ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The formula for the standard error of a proportion is the SE = sqrt( p*(1–p)/n ). You'd have to program this in a data step from the data set wt. After that, applying a format makes the result appear to have two decimal places.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the future, please type one SAS command per line, and type your SAS code into the box that appears when you click on the running man icon. Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Dec 2018 19:15:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-freq-and-standard-error-rounded-to-two-decimal-places/m-p/523794#M73470</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-12-28T19:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Proc freq and standard error - rounded to two decimal places</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-freq-and-standard-error-rounded-to-two-decimal-places/m-p/523953#M73479</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/101951"&gt;@kgrover&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am using the following statement:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;proc freq data = merged16 stderr; tables DEGENDER AGE RACE ;&lt;BR /&gt;format DEGENDER $DEGENDER. AGE AGE. RACE RACE. ;run;&lt;BR /&gt;ods output OneWayFreqs = wt;run;&lt;BR /&gt;proc print data = wt label;format _numeric_ 10.2;var _numeric_; run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I get sas to give me the standard error rounded to two decimal places along with frequencies with proc freq?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What does the log show when you run that code?&lt;/P&gt;
&lt;P&gt;Also standard error of which variable(s)? What would the standard error of a character variable such as DEGENDER look like? Race would also be a bit odd in interpreting the standard error of a pretty obvious categorical variable.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Dec 2018 20:19:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-freq-and-standard-error-rounded-to-two-decimal-places/m-p/523953#M73479</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-12-31T20:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Proc freq and standard error - rounded to two decimal places</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-freq-and-standard-error-rounded-to-two-decimal-places/m-p/524123#M73486</link>
      <description>&lt;P&gt;the log gives me the following error:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WARNING: Output 'OneWayFreqs' was not created. Make sure that the output object name, label, or path&lt;BR /&gt;is spelled correctly. Also, verify that the appropriate procedure options are used to produce&lt;BR /&gt;the requested output object. For example, verify that the NOPRINT option is not used.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 15:51:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-freq-and-standard-error-rounded-to-two-decimal-places/m-p/524123#M73486</guid>
      <dc:creator>kgrover</dc:creator>
      <dc:date>2019-01-02T15:51:56Z</dc:date>
    </item>
  </channel>
</rss>

