<?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 not getting correct result in output sas dataset from mean proc in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/not-getting-correct-result-in-output-sas-dataset-from-mean-proc/m-p/124840#M34289</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to use the below code for average:&lt;/P&gt;&lt;PRE class="jive-pre"&gt;&lt;CODE&gt;&amp;nbsp; proc means data = join_mkt_sort; by PRODUCT YEAR_MONTH_NUM; var encount_prod; output out = temp1 mean(encount_prod) = avg; run;&amp;nbsp; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;while in the html it shows the correct mean in decimal like : 1.2049, but in the dataset its showing as 1 only while for other variables its doing correctly. Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Jul 2013 15:37:28 GMT</pubDate>
    <dc:creator>munitech4u</dc:creator>
    <dc:date>2013-07-02T15:37:28Z</dc:date>
    <item>
      <title>not getting correct result in output sas dataset from mean proc</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/not-getting-correct-result-in-output-sas-dataset-from-mean-proc/m-p/124840#M34289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to use the below code for average:&lt;/P&gt;&lt;PRE class="jive-pre"&gt;&lt;CODE&gt;&amp;nbsp; proc means data = join_mkt_sort; by PRODUCT YEAR_MONTH_NUM; var encount_prod; output out = temp1 mean(encount_prod) = avg; run;&amp;nbsp; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;while in the html it shows the correct mean in decimal like : 1.2049, but in the dataset its showing as 1 only while for other variables its doing correctly. Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jul 2013 15:37:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/not-getting-correct-result-in-output-sas-dataset-from-mean-proc/m-p/124840#M34289</guid>
      <dc:creator>munitech4u</dc:creator>
      <dc:date>2013-07-02T15:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: not getting correct result in output sas dataset from mean proc</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/not-getting-correct-result-in-output-sas-dataset-from-mean-proc/m-p/124841#M34290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually I found the solution, the problem was the format. the means variable was in different format so it was ignoring the decimal places, i formatted it in an output dataset to BEST32. and it worked!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jul 2013 15:45:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/not-getting-correct-result-in-output-sas-dataset-from-mean-proc/m-p/124841#M34290</guid>
      <dc:creator>munitech4u</dc:creator>
      <dc:date>2013-07-02T15:45:57Z</dc:date>
    </item>
  </channel>
</rss>

