<?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: precision of analysis variable of proc tabulate in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/precision-of-analysis-variable-of-proc-tabulate/m-p/42469#M11056</link>
    <description>Thanks for your reply&lt;BR /&gt;
I have tried proc format picture and it works successfully on &lt;BR /&gt;
proc print&lt;BR /&gt;
The Class variable on proc tabulate&lt;BR /&gt;
&lt;BR /&gt;
However, i have no idea in applying the syntax on &lt;BR /&gt;
analysis variable "var"&lt;BR /&gt;
&lt;BR /&gt;
If I would like to display the mean with rounded 2 decimal places (mean * f=8.2)&lt;BR /&gt;
&lt;BR /&gt;
How can I &lt;BR /&gt;
 display the mean with roundDOWN 2 decimal places (mean * f=????)&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
    <pubDate>Fri, 19 Jun 2009 14:56:24 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-06-19T14:56:24Z</dc:date>
    <item>
      <title>precision of analysis variable of proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/precision-of-analysis-variable-of-proc-tabulate/m-p/42467#M11054</link>
      <description>precision of analysis variable of proc tabulate&lt;BR /&gt;
&lt;BR /&gt;
Please tell me the trick please^^&lt;BR /&gt;
&lt;BR /&gt;
I would like to display truncation of 2 decimal places in a table&lt;BR /&gt;
i.e.&lt;BR /&gt;
2.8888&lt;BR /&gt;
&lt;BR /&gt;
2.88 will be shown&lt;BR /&gt;
&lt;BR /&gt;
--------------------------------------------&lt;BR /&gt;
if I use&lt;BR /&gt;
f = 8.2&lt;BR /&gt;
2.89 will be displayed......that is I dont want&lt;BR /&gt;
--------------------------------------------</description>
      <pubDate>Tue, 09 Jun 2009 14:01:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/precision-of-analysis-variable-of-proc-tabulate/m-p/42467#M11054</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-06-09T14:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: precision of analysis variable of proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/precision-of-analysis-variable-of-proc-tabulate/m-p/42468#M11055</link>
      <description>SAS numeric formats round - the CEIL, FLOOR and ROUND functions can influence this behavior with pre-processing in a DATA step, otherwise you can display the value as formatted with your own defined PROC FORMAT (using PICTURE).  A link to a SAS conference paper is provided below, as well as having SAS-hosted documentation at the SAS support  &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  website and other technical papers available using the SEARCH facility.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
Getting in to the Picture (Format)&lt;BR /&gt;
Andrew H. Karp, Sierra Information Services, Sonoma, CA USA&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi31/243-31.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi31/243-31.pdf&lt;/A&gt;</description>
      <pubDate>Tue, 09 Jun 2009 14:55:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/precision-of-analysis-variable-of-proc-tabulate/m-p/42468#M11055</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-06-09T14:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: precision of analysis variable of proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/precision-of-analysis-variable-of-proc-tabulate/m-p/42469#M11056</link>
      <description>Thanks for your reply&lt;BR /&gt;
I have tried proc format picture and it works successfully on &lt;BR /&gt;
proc print&lt;BR /&gt;
The Class variable on proc tabulate&lt;BR /&gt;
&lt;BR /&gt;
However, i have no idea in applying the syntax on &lt;BR /&gt;
analysis variable "var"&lt;BR /&gt;
&lt;BR /&gt;
If I would like to display the mean with rounded 2 decimal places (mean * f=8.2)&lt;BR /&gt;
&lt;BR /&gt;
How can I &lt;BR /&gt;
 display the mean with roundDOWN 2 decimal places (mean * f=????)&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Fri, 19 Jun 2009 14:56:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/precision-of-analysis-variable-of-proc-tabulate/m-p/42469#M11056</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-06-19T14:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: precision of analysis variable of proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/precision-of-analysis-variable-of-proc-tabulate/m-p/42470#M11057</link>
      <description>To demonstarte data with more decimal places than monber, suppose we create data like bmi on sashelp.class&lt;BR /&gt;
As I don't know the unit conversion, the following is just approximately "logical"&lt;BR /&gt;
[pre]data classb ;&lt;BR /&gt;
  set sashelp.class ;&lt;BR /&gt;
  myBMI = height**3 / weight ;&lt;BR /&gt;
run ;&lt;BR /&gt;
proc format ;&lt;BR /&gt;
   picture truncat .=. other = '00001.23'(mult=100) ;&lt;BR /&gt;
proc tabulate ;&lt;BR /&gt;
  class age ;&lt;BR /&gt;
  var   myBMI ;&lt;BR /&gt;
  table ( all age all ),  n*f=3.  mybmi*(mean='trunc'*f=truncat.&lt;BR /&gt;
                                         mean='round'*f=8.2&lt;BR /&gt;
                                         mean='more-'*f=11.5)&lt;BR /&gt;
              /rts=10 ;&lt;BR /&gt;
run ; [/pre]It is tested in SAS9.2 but would probably run in SAS6&lt;BR /&gt;
run that and see if it demonstrates the truncation required&lt;BR /&gt;
 &lt;BR /&gt;
There is an option for numeric user formats to round before formatting. That feature is not used in my example, above.&lt;BR /&gt;
 &lt;BR /&gt;
PeterC</description>
      <pubDate>Fri, 19 Jun 2009 20:02:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/precision-of-analysis-variable-of-proc-tabulate/m-p/42470#M11057</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2009-06-19T20:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: precision of analysis variable of proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/precision-of-analysis-variable-of-proc-tabulate/m-p/42471#M11058</link>
      <description>Thank you very much!&lt;BR /&gt;
I got the idea now!</description>
      <pubDate>Sat, 20 Jun 2009 01:58:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/precision-of-analysis-variable-of-proc-tabulate/m-p/42471#M11058</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-06-20T01:58:44Z</dc:date>
    </item>
  </channel>
</rss>

