<?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 Invalid argument to function LOG(0) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Invalid-argument-to-function-LOG-0/m-p/269584#M53435</link>
    <description>&lt;P&gt;I'm trying to transform a continuous variable that contains&amp;nbsp;all positive values, using&amp;nbsp;a variety of functions (See code).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;        logPAMIN  	 = log (SCORE);
	log10PAMIN       = log10 (SCORE);
	rootPAMIN        = sqrt (SCORE);
	expPAMIN   	 = exp (SCORE/10);&lt;/PRE&gt;
&lt;P&gt;The &lt;A href="http://support.sas.com/documentation/cdl/en/lefunctionsref/67960/HTML/default/viewer.htm#p0urbseuxrkrlyn1tr04y30nt25s.htm" target="_self"&gt;LOG&lt;/A&gt; and LOG10 functions return an error message relatiing to an invalid argument.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any ideas what's going on?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 May 2016 21:44:04 GMT</pubDate>
    <dc:creator>_maldini_</dc:creator>
    <dc:date>2016-05-10T21:44:04Z</dc:date>
    <item>
      <title>Invalid argument to function LOG(0)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Invalid-argument-to-function-LOG-0/m-p/269584#M53435</link>
      <description>&lt;P&gt;I'm trying to transform a continuous variable that contains&amp;nbsp;all positive values, using&amp;nbsp;a variety of functions (See code).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;        logPAMIN  	 = log (SCORE);
	log10PAMIN       = log10 (SCORE);
	rootPAMIN        = sqrt (SCORE);
	expPAMIN   	 = exp (SCORE/10);&lt;/PRE&gt;
&lt;P&gt;The &lt;A href="http://support.sas.com/documentation/cdl/en/lefunctionsref/67960/HTML/default/viewer.htm#p0urbseuxrkrlyn1tr04y30nt25s.htm" target="_self"&gt;LOG&lt;/A&gt; and LOG10 functions return an error message relatiing to an invalid argument.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any ideas what's going on?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 21:44:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Invalid-argument-to-function-LOG-0/m-p/269584#M53435</guid>
      <dc:creator>_maldini_</dc:creator>
      <dc:date>2016-05-10T21:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid argument to function LOG(0)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Invalid-argument-to-function-LOG-0/m-p/269585#M53436</link>
      <description>&lt;P&gt;When this happens you'll get missing values. So you can filter your data and figure out what's going on yourself &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My guess - 0 or missing values.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data check;
set have;
where missing (logpamin);
run;

proc means data=check n min max;
var score;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 May 2016 21:46:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Invalid-argument-to-function-LOG-0/m-p/269585#M53436</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-05-10T21:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid argument to function LOG(0)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Invalid-argument-to-function-LOG-0/m-p/269590#M53437</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza﻿&lt;/a&gt;&amp;nbsp;You were correct. Zero values were being converted to missing. Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 22:26:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Invalid-argument-to-function-LOG-0/m-p/269590#M53437</guid>
      <dc:creator>_maldini_</dc:creator>
      <dc:date>2016-05-10T22:26:12Z</dc:date>
    </item>
  </channel>
</rss>

