<?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: Adding new variable in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Adding-new-variable/m-p/359550#M18874</link>
    <description>&lt;P&gt;Use the LOG function instead of LN when you want the natural logarithm.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And remember that the logarithm is defined only for values &amp;gt;0. You can not take the logarithm of zero or a negative number.&lt;/P&gt;</description>
    <pubDate>Thu, 18 May 2017 06:40:38 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2017-05-18T06:40:38Z</dc:date>
    <item>
      <title>Adding new variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Adding-new-variable/m-p/359547#M18873</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am tring to add a new variable with the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data new; set sasuser.hed1;&lt;BR /&gt;lncapax = ln(capaxass);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The log I got is:&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;WARNING: The data set WORK.NEW may be incomplete. When this step was stopped there were 0&lt;BR /&gt;observations and 183 variables.&lt;BR /&gt;NOTE: At least one W.D format was too small for the number to be printed. The decimal may be shifted&lt;BR /&gt;by the "BEST" format.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I believe the reason is that there is observation with 0 value and the ln of it is an error. How can I fix it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 05:38:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Adding-new-variable/m-p/359547#M18873</guid>
      <dc:creator>yael</dc:creator>
      <dc:date>2017-05-18T05:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Adding new variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Adding-new-variable/m-p/359550#M18874</link>
      <description>&lt;P&gt;Use the LOG function instead of LN when you want the natural logarithm.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And remember that the logarithm is defined only for values &amp;gt;0. You can not take the logarithm of zero or a negative number.&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 06:40:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Adding-new-variable/m-p/359550#M18874</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-05-18T06:40:38Z</dc:date>
    </item>
  </channel>
</rss>

