<?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: Mean Median Std --Decimal places in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Mean-Median-Std-Decimal-places/m-p/551193#M8930</link>
    <description>&lt;P&gt;You apply formats to the results to get the desired decimal places.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need something in general that figures out how many decimal places are in the original data, you'd have to write a macro that figures this out and the determines the proper formats.&lt;/P&gt;</description>
    <pubDate>Mon, 15 Apr 2019 18:47:41 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2019-04-15T18:47:41Z</dc:date>
    <item>
      <title>Mean Median Std --Decimal places</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Mean-Median-Std-Decimal-places/m-p/551173#M8926</link>
      <description>&lt;P&gt;How to display decimal places for mean median and std based on the data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;age&lt;/P&gt;&lt;P&gt;20&lt;/P&gt;&lt;P&gt;30&lt;/P&gt;&lt;P&gt;50&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if the data say min and max for 20 and 50:&lt;/P&gt;&lt;P&gt;mean=33.333333333&lt;/P&gt;&lt;P&gt;std=15.275252317&lt;/P&gt;&lt;P&gt;median=30&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to display statistics as below:&lt;/P&gt;&lt;P&gt;Mean, median 1 decimal more than data. Standard deviation should be 2 decimal more than data (Data varies for each variable).&lt;/P&gt;&lt;P&gt;mean=33.3&lt;/P&gt;&lt;P&gt;std=15.27&lt;/P&gt;&lt;P&gt;median=30.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 18:24:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Mean-Median-Std-Decimal-places/m-p/551173#M8926</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2019-04-15T18:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Mean Median Std --Decimal places</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Mean-Median-Std-Decimal-places/m-p/551190#M8928</link>
      <description>&lt;P&gt;How do you calculate these statistics?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 18:45:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Mean-Median-Std-Decimal-places/m-p/551190#M8928</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-04-15T18:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Mean Median Std --Decimal places</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Mean-Median-Std-Decimal-places/m-p/551193#M8930</link>
      <description>&lt;P&gt;You apply formats to the results to get the desired decimal places.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need something in general that figures out how many decimal places are in the original data, you'd have to write a macro that figures this out and the determines the proper formats.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 18:47:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Mean-Median-Std-Decimal-places/m-p/551193#M8930</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-04-15T18:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Mean Median Std --Decimal places</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Mean-Median-Std-Decimal-places/m-p/551226#M8939</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16600"&gt;@SASPhile&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;How to display decimal places for mean median and std based on the data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;age&lt;/P&gt;
&lt;P&gt;20&lt;/P&gt;
&lt;P&gt;30&lt;/P&gt;
&lt;P&gt;50&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if the data say min and max for 20 and 50:&lt;/P&gt;
&lt;P&gt;mean=33.333333333&lt;/P&gt;
&lt;P&gt;std=15.275252317&lt;/P&gt;
&lt;P&gt;median=30&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to display statistics as below:&lt;/P&gt;
&lt;P&gt;Mean, median 1 decimal more than data. Standard deviation should be 2 decimal more than data (Data varies for each variable).&lt;/P&gt;
&lt;P&gt;mean=33.3&lt;/P&gt;
&lt;P&gt;std=15.27&lt;/P&gt;
&lt;P&gt;median=30.0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I suggest picking a reasonable value and not attempting to determine how many internal decimals are stored and adjusting from that. Many numbers can only be approximated by the binary coding and often use many more "decimal places" in internal storage than you might expect. Plus what do would you want if most of the values are integers and you have one value like 10.12345678? Do you really need 9 decimal places in that case?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And are displayed values at that precision actually needed? If I am talking about real estate prices will often actually have two decimal places (Unites States and values to the nearest cent). But when the mean price of something is&amp;nbsp;like $266,834.281 does the extra tenth of a cent have any practical use? An argument can be made that for most purposes that anything under $100 is likely not meaningful in practical terms.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can investigate the properties of a variable to find if the format has specified a typical display range but if you have lots of "best8." type formats that wouldn't help.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 19:47:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Mean-Median-Std-Decimal-places/m-p/551226#M8939</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-04-15T19:47:56Z</dc:date>
    </item>
  </channel>
</rss>

