<?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 How do I round off in proc tabulate? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-round-off-in-proc-tabulate/m-p/188960#M265951</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using proc tabulate to generate a table containing mean and standard deviation for some variables. It returns a table where the values are given with two significant figures. Is there any way I can round off these values to the nearest whole number instead?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code used:&lt;/P&gt;&lt;P&gt;proc tabulate data=sved.rank4 missing order=formatted;&lt;/P&gt;&lt;P&gt;where MMSEny ne .;&lt;/P&gt;&lt;P&gt;class diagnosid overall;&lt;/P&gt;&lt;P&gt;var diagnosage MMSEny ab42ny ttauny ptauny;&lt;/P&gt;&lt;P&gt;tables diagnosage MMSEny ab42ny ttauny ptauny,&lt;/P&gt;&lt;P&gt;diagnosid=''*(mean stddev)&lt;/P&gt;&lt;P&gt;overall=''*(mean stddev);&lt;/P&gt;&lt;P&gt;format diagnosid diagnosid_. overall overall_.;&lt;/P&gt;&lt;P&gt;run&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Christoffer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 08 Jun 2014 08:20:55 GMT</pubDate>
    <dc:creator>Chrosen</dc:creator>
    <dc:date>2014-06-08T08:20:55Z</dc:date>
    <item>
      <title>How do I round off in proc tabulate?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-round-off-in-proc-tabulate/m-p/188960#M265951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using proc tabulate to generate a table containing mean and standard deviation for some variables. It returns a table where the values are given with two significant figures. Is there any way I can round off these values to the nearest whole number instead?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code used:&lt;/P&gt;&lt;P&gt;proc tabulate data=sved.rank4 missing order=formatted;&lt;/P&gt;&lt;P&gt;where MMSEny ne .;&lt;/P&gt;&lt;P&gt;class diagnosid overall;&lt;/P&gt;&lt;P&gt;var diagnosage MMSEny ab42ny ttauny ptauny;&lt;/P&gt;&lt;P&gt;tables diagnosage MMSEny ab42ny ttauny ptauny,&lt;/P&gt;&lt;P&gt;diagnosid=''*(mean stddev)&lt;/P&gt;&lt;P&gt;overall=''*(mean stddev);&lt;/P&gt;&lt;P&gt;format diagnosid diagnosid_. overall overall_.;&lt;/P&gt;&lt;P&gt;run&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Christoffer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jun 2014 08:20:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-round-off-in-proc-tabulate/m-p/188960#M265951</guid>
      <dc:creator>Chrosen</dc:creator>
      <dc:date>2014-06-08T08:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: How do I round off in proc tabulate?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-round-off-in-proc-tabulate/m-p/188961#M265952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;proc tabulate data=sved.rank4 missing order=formatted;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;where MMSEny ne .;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;class diagnosid overall;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;var diagnosage MMSEny ab42ny ttauny ptauny;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;tables diagnosage MMSEny ab42ny ttauny ptauny,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;diagnosid=''*(mean&lt;STRONG&gt;*f=best8.0&lt;/STRONG&gt; stddev)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;overall=''*(mean stddev);&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;format diagnosid diagnosid_. overall overall_.;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;run&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jun 2014 10:55:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-round-off-in-proc-tabulate/m-p/188961#M265952</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-06-08T10:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: How do I round off in proc tabulate?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-round-off-in-proc-tabulate/m-p/188962#M265953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The best format will show as most possible digits.&lt;/P&gt;&lt;P&gt;Do you want to round off at your wishes use a proper format for that according your wish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jun 2014 13:22:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-round-off-in-proc-tabulate/m-p/188962#M265953</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-06-08T13:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: How do I round off in proc tabulate?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-round-off-in-proc-tabulate/m-p/188963#M265954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't mention the range of values so I'm guessing as to how large to make the format. If you need more digits increase the 6 to the number needed, up to 32 any way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;diagnosid=''*(mean*f=f6.0 stddev*f=f6.0)&lt;/P&gt;&lt;P&gt;overall=''*(mean*f=f6.0 stddev*f=f6.0);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 15:27:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-round-off-in-proc-tabulate/m-p/188963#M265954</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-06-09T15:27:42Z</dc:date>
    </item>
  </channel>
</rss>

