<?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: Natural log in SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Natural-log-in-SAS/m-p/727153#M226096</link>
    <description>&lt;P&gt;Thanks &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;for reading the post commenting that everything is wrong.&lt;BR /&gt;Please help me understand where I am wrong.&lt;BR /&gt;Learning is a life long exercise and we learn many things in course of time.&lt;BR /&gt;My post showed the following&lt;BR /&gt;1. Log() function gives natural log (ln)&lt;BR /&gt;2. log10() gives log to the base 10&lt;BR /&gt;3.I took an example using the formula in the first post by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/168930"&gt;@Anita_n&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;The idea was to show the difference in the output of the two functions.&lt;/P&gt;&lt;P&gt;Lastly there are many different&amp;nbsp; ways of doing the same thing,&lt;BR /&gt;and many different ways of communicating the same thing.&lt;BR /&gt;The more importing thing is to appreciate that somebody responded to a question.&lt;/P&gt;</description>
    <pubDate>Wed, 17 Mar 2021 16:05:20 GMT</pubDate>
    <dc:creator>Sajid01</dc:creator>
    <dc:date>2021-03-17T16:05:20Z</dc:date>
    <item>
      <title>Natural log in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Natural-log-in-SAS/m-p/727034#M226043</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I need use this formular in SAS, but since am getting wrong results, please can anyone see if I interpretted anything wrong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;NewVar= 0,56x√(TJC28)+0,28x√(SJC28)+0,70xlog&lt;/SPAN&gt;&lt;SUB&gt;nat&lt;/SUB&gt;&lt;SPAN&gt;(BSG)+0,014xGG&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I did interprete it like this in my SAS-Code:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;NewVar=(0.56*sqrt(TJC28))+(0.28*sqrt(SJC28))+(0.70*log(BSG))+(0.014*GG);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Am not sure if natural log is calculated this way in SAS&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please, I will appreciate any help&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 09:55:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Natural-log-in-SAS/m-p/727034#M226043</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2021-03-17T09:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Natural log in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Natural-log-in-SAS/m-p/727040#M226045</link>
      <description>&lt;P&gt;The formula seems correct. Can you break down the formula components? Is this an Excel formula? Maybe some decimal digitss are hidden?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 10:03:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Natural-log-in-SAS/m-p/727040#M226045</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-03-17T10:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Natural log in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Natural-log-in-SAS/m-p/727041#M226046</link>
      <description>&lt;P&gt;how do you mean, to break the formula components. The given names are the variable names&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 10:11:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Natural-log-in-SAS/m-p/727041#M226046</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2021-03-17T10:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: Natural log in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Natural-log-in-SAS/m-p/727044#M226048</link>
      <description>&lt;P&gt;Are the values of these the same on both sides:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;(0.56*sqrt(TJC28))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;(0.28*sqrt(SJC28))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;(0.70*log(BSG))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;(0.014*GG)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 10:17:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Natural-log-in-SAS/m-p/727044#M226048</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-03-17T10:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: Natural log in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Natural-log-in-SAS/m-p/727047#M226049</link>
      <description>&lt;P&gt;With which system did you compare the result you get in SAS? And how did you code the formula in that reference system?&lt;/P&gt;
&lt;P&gt;Run this code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
le = log(10);
put le=;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and see if your reference system comes up with the same value for an argument of 10.&lt;/P&gt;
&lt;P&gt;(BTW, the value is of course correct).&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 10:25:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Natural-log-in-SAS/m-p/727047#M226049</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-03-17T10:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Natural log in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Natural-log-in-SAS/m-p/727056#M226054</link>
      <description>&lt;P&gt;From the SAS &lt;A href="https://documentation.sas.com/?cdcId=pgmmvacdc&amp;amp;cdcVersion=9.4&amp;amp;docsetId=lefunctionsref&amp;amp;docsetTarget=p0urbseuxrkrlyn1tr04y30nt25s.htm&amp;amp;locale=en" target="_self"&gt;documentation&lt;/A&gt;:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;H1 id="p0urbseuxrkrlyn1tr04y30nt25s" class="xisDoc-title"&gt;LOG Function&lt;/H1&gt;
&lt;P class="xisDoc-shortDescription"&gt;Returns the natural (base e) logarithm.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P class="xisDoc-shortDescription"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="xisDoc-shortDescription"&gt;This seems to answer your question.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 11:00:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Natural-log-in-SAS/m-p/727056#M226054</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-03-17T11:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Natural log in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Natural-log-in-SAS/m-p/727057#M226055</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt;: Yes the values are the same on both sides</description>
      <pubDate>Wed, 17 Mar 2021 11:02:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Natural-log-in-SAS/m-p/727057#M226055</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2021-03-17T11:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Natural log in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Natural-log-in-SAS/m-p/727059#M226057</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;: I know I don't have to get negative values for  NewVar but I do have negative values. When I do the calculation in excel or with my calculator I get different results</description>
      <pubDate>Wed, 17 Mar 2021 11:04:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Natural-log-in-SAS/m-p/727059#M226057</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2021-03-17T11:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: Natural log in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Natural-log-in-SAS/m-p/727061#M226058</link>
      <description>&lt;P&gt;Why wouldn't you have negative values? With small values for BSG, the log will be negative:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input tjc28 sjc28 bsg gg;
datalines;
.03 .03 .01 1
;

data check;
set have;
NewVar =
  0.56 * sqrt(TJC28)
  +
  0.28 * sqrt(SJC28)
  +
  0.70 * log(BSG)
  +
  0.014 * GG
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;(a bsg value of zero would result in negative infinity)&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 11:09:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Natural-log-in-SAS/m-p/727061#M226058</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-03-17T11:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: Natural log in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Natural-log-in-SAS/m-p/727076#M226066</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/168930"&gt;@Anita_n&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In SAS the function log(a) is actually natural log i.e. ln. The function log10(a) refers to log to the base 10.&lt;/P&gt;&lt;P&gt;Have a look at the following code to understand the use of the functions.&lt;BR /&gt;Please note i have assigned some numerical values to your variables to explain the concept.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data _NULL_;&lt;BR /&gt;TJC28=100;&lt;BR /&gt;SJC28=250;&lt;BR /&gt;BSG=500;&lt;BR /&gt;GG=1000;&lt;/P&gt;&lt;P&gt;NewVar_e=(0.56*sqrt(TJC28))+(0.28*sqrt(SJC28))+(0.70*log(BSG))+(0.014*GG);&lt;BR /&gt;NewVar_10=(0.56*sqrt(TJC28))+(0.28*sqrt(SJC28))+(0.70*log10(BSG))+(0.014*GG);&lt;BR /&gt;put NewVar_e=;&lt;BR /&gt;put NewVar_10=;&lt;BR /&gt;run;&lt;BR /&gt;In the log we see&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasSource"&gt;NewVar_e=28.377414393&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;NewVar_10=25.916467727&lt;/DIV&gt;</description>
      <pubDate>Wed, 17 Mar 2021 12:24:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Natural-log-in-SAS/m-p/727076#M226066</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2021-03-17T12:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: Natural log in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Natural-log-in-SAS/m-p/727119#M226079</link>
      <description>&lt;P&gt;Provide an full example of "wrong result", this means the values of all variables, the result you get and the value you compare it to that tells you the SAS result is "wrong".&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 14:25:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Natural-log-in-SAS/m-p/727119#M226079</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-03-17T14:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Natural log in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Natural-log-in-SAS/m-p/727153#M226096</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;for reading the post commenting that everything is wrong.&lt;BR /&gt;Please help me understand where I am wrong.&lt;BR /&gt;Learning is a life long exercise and we learn many things in course of time.&lt;BR /&gt;My post showed the following&lt;BR /&gt;1. Log() function gives natural log (ln)&lt;BR /&gt;2. log10() gives log to the base 10&lt;BR /&gt;3.I took an example using the formula in the first post by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/168930"&gt;@Anita_n&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;The idea was to show the difference in the output of the two functions.&lt;/P&gt;&lt;P&gt;Lastly there are many different&amp;nbsp; ways of doing the same thing,&lt;BR /&gt;and many different ways of communicating the same thing.&lt;BR /&gt;The more importing thing is to appreciate that somebody responded to a question.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 16:05:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Natural-log-in-SAS/m-p/727153#M226096</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2021-03-17T16:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Natural log in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Natural-log-in-SAS/m-p/727161#M226103</link>
      <description>&lt;P&gt;In Excel natural log is ln.&amp;nbsp; it's different than log (which is base 10)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;	log(10)	ln(10)
10	1.0000000	2.3025851
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Mar 2021 16:21:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Natural-log-in-SAS/m-p/727161#M226103</guid>
      <dc:creator>ghosh</dc:creator>
      <dc:date>2021-03-17T16:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Natural log in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Natural-log-in-SAS/m-p/727186#M226114</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/131732"&gt;@Sajid01&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;for reading the post commenting that everything is wrong.&lt;BR /&gt;Please help me understand where I am wrong.&lt;BR /&gt;Learning is a life long exercise and we learn many things in course of time.&lt;BR /&gt;My post showed the following&lt;BR /&gt;1. Log() function gives natural log (ln)&lt;BR /&gt;2. log10() gives log to the base 10&lt;BR /&gt;3.I took an example using the formula in the first post by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/168930"&gt;@Anita_n&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;The idea was to show the difference in the output of the two functions.&lt;/P&gt;
&lt;P&gt;Lastly there are many different&amp;nbsp; ways of doing the same thing,&lt;BR /&gt;and many different ways of communicating the same thing.&lt;BR /&gt;The more importing thing is to appreciate that somebody responded to a question.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I was hoping to see the actual values of some variables and the results that &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/168930"&gt;@Anita_n&lt;/a&gt; is using and seeing.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 17:07:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Natural-log-in-SAS/m-p/727186#M226114</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-03-17T17:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Natural log in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Natural-log-in-SAS/m-p/727222#M226128</link>
      <description>&lt;P&gt;Hello all,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks for your responses and the ideas. Here are some data samples am using and the corresponding results I got in SAS compared to excel:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="369"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="58px"&gt;TJC28&lt;/TD&gt;
&lt;TD width="59.3333px"&gt;SJC28&lt;/TD&gt;
&lt;TD width="51.3333px"&gt;CRP&lt;/TD&gt;
&lt;TD width="40px"&gt;GG&lt;/TD&gt;
&lt;TD width="95.3333px"&gt;SAS: NewVar&lt;/TD&gt;
&lt;TD width="95.3333px"&gt;Excel Results&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="58px"&gt;3&lt;/TD&gt;
&lt;TD width="59.3333px"&gt;3&lt;/TD&gt;
&lt;TD width="51.3333px"&gt;0,09&lt;/TD&gt;
&lt;TD width="40px"&gt;18&lt;/TD&gt;
&lt;TD width="95.3333px"&gt;0,02136075&lt;/TD&gt;
&lt;TD width="95.3333px"&gt;0,97489243&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="58px"&gt;0&lt;/TD&gt;
&lt;TD width="59.3333px"&gt;0&lt;/TD&gt;
&lt;TD width="51.3333px"&gt;0,7&lt;/TD&gt;
&lt;TD width="40px"&gt;20&lt;/TD&gt;
&lt;TD width="95.3333px"&gt;0,03032754&lt;/TD&gt;
&lt;TD width="95.3333px"&gt;0,17156863&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="58px"&gt;0&lt;/TD&gt;
&lt;TD width="59.3333px"&gt;0&lt;/TD&gt;
&lt;TD width="51.3333px"&gt;0,6&lt;/TD&gt;
&lt;TD width="40px"&gt;30&lt;/TD&gt;
&lt;TD width="95.3333px"&gt;0,06242206&lt;/TD&gt;
&lt;TD width="95.3333px"&gt;0,26470588&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="58px"&gt;0&lt;/TD&gt;
&lt;TD width="59.3333px"&gt;0&lt;/TD&gt;
&lt;TD width="51.3333px"&gt;1&lt;/TD&gt;
&lt;TD width="40px"&gt;5&lt;/TD&gt;
&lt;TD width="95.3333px"&gt;0,07&lt;/TD&gt;
&lt;TD width="95.3333px"&gt;0,07&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="58px"&gt;0&lt;/TD&gt;
&lt;TD width="59.3333px"&gt;0&lt;/TD&gt;
&lt;TD width="51.3333px"&gt;0,02&lt;/TD&gt;
&lt;TD width="40px"&gt;0&lt;/TD&gt;
&lt;TD width="95.3333px"&gt;-2,7384161&lt;/TD&gt;
&lt;TD width="95.3333px"&gt;-1,189279&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="58px"&gt;0&lt;/TD&gt;
&lt;TD width="59.3333px"&gt;0&lt;/TD&gt;
&lt;TD width="51.3333px"&gt;0,02&lt;/TD&gt;
&lt;TD width="40px"&gt;10&lt;/TD&gt;
&lt;TD width="95.3333px"&gt;-2,5984161&lt;/TD&gt;
&lt;TD width="95.3333px"&gt;-1,049279&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="58px"&gt;0&lt;/TD&gt;
&lt;TD width="59.3333px"&gt;0&lt;/TD&gt;
&lt;TD width="51.3333px"&gt;0,023&lt;/TD&gt;
&lt;TD width="40px"&gt;5&lt;/TD&gt;
&lt;TD width="95.3333px"&gt;-2,5705827&lt;/TD&gt;
&lt;TD width="95.3333px"&gt;-1,0767905&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="58px"&gt;0&lt;/TD&gt;
&lt;TD width="59.3333px"&gt;0&lt;/TD&gt;
&lt;TD width="51.3333px"&gt;0,031&lt;/TD&gt;
&lt;TD width="40px"&gt;5&lt;/TD&gt;
&lt;TD width="95.3333px"&gt;-2,3616377&lt;/TD&gt;
&lt;TD width="95.3333px"&gt;-0,9860468&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the formula:&amp;nbsp;&lt;SPAN&gt;0,56x√(TJC28)+0,28x√(SJC28)+0,70xlog&lt;/SPAN&gt;&lt;SUB&gt;nat&lt;/SUB&gt;&lt;SPAN&gt;(CRP)+0,014xGG&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;and this was how I interpretted it in SAS&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;NewVar=(0.56*sqrt(TJC28))+(0.28*sqrt(SJC28))+(0.70*log(CRP))+(0.014*GG);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;You can see that the results I get from SAS is different from what I get from SAS. My caculator gives the same results like excel. Thanks for any solution&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 19:50:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Natural-log-in-SAS/m-p/727222#M226128</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2021-03-17T19:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Natural log in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Natural-log-in-SAS/m-p/727230#M226135</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;
&lt;P&gt;I realise that when I use "ln" in excel (as ghosh sugested) instead of log I get the same results.&lt;/P&gt;
&lt;P&gt;Should I conclude that log in SAS = ln in excel?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 19:53:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Natural-log-in-SAS/m-p/727230#M226135</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2021-03-17T19:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Natural log in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Natural-log-in-SAS/m-p/727231#M226136</link>
      <description>&lt;P&gt;Exactly.&lt;/P&gt;&lt;P&gt;ln in excel = log in SAS&lt;/P&gt;&lt;P&gt;Similarly log in excel is log10 in SAS&lt;/P&gt;&lt;P&gt;Plain and simple.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 19:59:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Natural-log-in-SAS/m-p/727231#M226136</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2021-03-17T19:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Natural log in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Natural-log-in-SAS/m-p/727233#M226138</link>
      <description>&lt;P&gt;Okay, thanks to you all&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 20:08:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Natural-log-in-SAS/m-p/727233#M226138</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2021-03-17T20:08:44Z</dc:date>
    </item>
  </channel>
</rss>

