<?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 Geometric mean in log base 10 in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Geometric-mean-in-log-base-10/m-p/77786#M22471</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A name="msg_e34bf0f6da0356e6"&gt;&lt;/A&gt;I need to calculate the geometric mean of data. &lt;/P&gt;&lt;P&gt;These data are first &lt;STRONG&gt;transformed in log10&lt;/STRONG&gt;. &lt;/P&gt;&lt;P&gt;Then I do the arithmetic mean of these log10 values and then i do the exponential of the arithmetic mean. &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Do you confirm I am right? &lt;BR /&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;(I find very different values from arithmetic mean so I am not sure I do the calculation correclty). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moreover, someome told me that I should do GM = exponential of the arithmetic mean * log(10) (log function is the natural logarithm in SAS) and not just GM = exponential of the arithmetic mean&lt;BR /&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Thanks.for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Jun 2012 07:33:29 GMT</pubDate>
    <dc:creator>amoreau1</dc:creator>
    <dc:date>2012-06-07T07:33:29Z</dc:date>
    <item>
      <title>Geometric mean in log base 10</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Geometric-mean-in-log-base-10/m-p/77786#M22471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A name="msg_e34bf0f6da0356e6"&gt;&lt;/A&gt;I need to calculate the geometric mean of data. &lt;/P&gt;&lt;P&gt;These data are first &lt;STRONG&gt;transformed in log10&lt;/STRONG&gt;. &lt;/P&gt;&lt;P&gt;Then I do the arithmetic mean of these log10 values and then i do the exponential of the arithmetic mean. &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Do you confirm I am right? &lt;BR /&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;(I find very different values from arithmetic mean so I am not sure I do the calculation correclty). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moreover, someome told me that I should do GM = exponential of the arithmetic mean * log(10) (log function is the natural logarithm in SAS) and not just GM = exponential of the arithmetic mean&lt;BR /&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Thanks.for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2012 07:33:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Geometric-mean-in-log-base-10/m-p/77786#M22471</guid>
      <dc:creator>amoreau1</dc:creator>
      <dc:date>2012-06-07T07:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: Geometric mean in log base 10</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Geometric-mean-in-log-base-10/m-p/77787#M22472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The backtransformation is not exp(), but rather 10**(), when the transformation is log10.&amp;nbsp; The expression log(10)*exp() will give the same value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2012 11:30:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Geometric-mean-in-log-base-10/m-p/77787#M22472</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2012-06-07T11:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: Geometric mean in log base 10</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Geometric-mean-in-log-base-10/m-p/77788#M22473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAS has a function GEOMEAN() to do this way . Do you need it ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2012 01:52:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Geometric-mean-in-log-base-10/m-p/77788#M22473</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2012-06-08T01:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Geometric mean in log base 10</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Geometric-mean-in-log-base-10/m-p/77789#M22474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;Just to clarify, if I do 10**(mean_of_log_values), it is not equal to log(10)*exp(mean_of_log_values).&lt;/P&gt;&lt;P&gt;I found the same result if I do exp(mean_of_log_values * log(10).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, what is the good formula?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2012 08:56:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Geometric-mean-in-log-base-10/m-p/77789#M22474</guid>
      <dc:creator>amoreau1</dc:creator>
      <dc:date>2012-06-08T08:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Geometric mean in log base 10</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Geometric-mean-in-log-base-10/m-p/77790#M22475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My mistake.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let X = mean of log10 values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then geometric mean = 10**X&lt;/P&gt;&lt;P&gt;OR geometric mean = exp(log(10)*X), where log is the natural log of 10 = 2.303 (approximately).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the variables in question are x1 to xN, then Ksharps recommendation of geomean(x1, x2,..., xN) is the way to go.&amp;nbsp; Note that this is invalid for any x less than zero, and returns zero if any of the x's are equal to zero.&amp;nbsp; This may require transposing the data if the x values are on separate records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2012 09:48:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Geometric-mean-in-log-base-10/m-p/77790#M22475</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2012-06-08T09:48:03Z</dc:date>
    </item>
  </channel>
</rss>

