<?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: Question about log-based variables in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Question-about-log-based-variables/m-p/207919#M11187</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here are a few articles that discuss the problem you mention and suggest a few potential work-arounds:&lt;/P&gt;&lt;P&gt;&lt;A href="http://blogs.sas.com/content/iml/2014/07/09/scatter-plots-with-log-axes.html" title="http://blogs.sas.com/content/iml/2014/07/09/scatter-plots-with-log-axes.html"&gt;http://blogs.sas.com/content/iml/2014/07/09/scatter-plots-with-log-axes.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://blogs.sas.com/content/iml/2011/04/27/log-transformations-how-to-handle-negative-data-values.html" title="http://blogs.sas.com/content/iml/2011/04/27/log-transformations-how-to-handle-negative-data-values.html"&gt;http://blogs.sas.com/content/iml/2011/04/27/log-transformations-how-to-handle-negative-data-values.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Jul 2015 15:23:41 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2015-07-22T15:23:41Z</dc:date>
    <item>
      <title>Question about log-based variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Question-about-log-based-variables/m-p/207911#M11179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working on some pilot data and naturally I have a non-normal distribution for my outcome. I tried to alleviate this by converting my outcome (continuous) variable to a log base 10 variable. Unfortunately, one of my outcome variables is 0 so SAS gives me the "NOTE: Invalid argument to function LOG10 at line nnn column nn" error message and then treats that variable as missing. Is there a way to solve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made the new variable in a "set" statement so the ?? modifier doesn't seem to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice would be much appreciated (I'm a freshie, go easy on me)!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 20:29:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Question-about-log-based-variables/m-p/207911#M11179</guid>
      <dc:creator>sara_a</dc:creator>
      <dc:date>2015-07-21T20:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Question about log-based variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Question-about-log-based-variables/m-p/207912#M11180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, its true, you can't take the log of 0.&lt;/P&gt;&lt;P&gt;One simple way is to add 0.1 to the 0, if that's valid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on the data there may be other transformations or methods that are available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;if pilot=0 then pilot2=0.1;&lt;/P&gt;&lt;P&gt;logpilot=log10(pilot2);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 21:37:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Question-about-log-based-variables/m-p/207912#M11180</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-07-21T21:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: Question about log-based variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Question-about-log-based-variables/m-p/207913#M11181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Reeza jan, I didn't realize a few hours ago that this was a conventional way of solving the problem &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 21:43:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Question-about-log-based-variables/m-p/207913#M11181</guid>
      <dc:creator>sara_a</dc:creator>
      <dc:date>2015-07-21T21:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Question about log-based variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Question-about-log-based-variables/m-p/207914#M11182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Logarithmic transformation would make sense for your data if zero values actually mean that the value was too small to be measured. In that case, many analysts will replace zeros with half the smallest value that can be measured, before taking the logarithm.&lt;/P&gt;&lt;P&gt;Taking logarithms is only one of many ways to deal with non-normal data. We would need to know more about the nature of your data to suggest other methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 22:05:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Question-about-log-based-variables/m-p/207914#M11182</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2015-07-21T22:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: Question about log-based variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Question-about-log-based-variables/m-p/207915#M11183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my case zero just means that the value was actually zero. Values that were too small to be measured were treated as missing data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 22:15:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Question-about-log-based-variables/m-p/207915#M11183</guid>
      <dc:creator>sara_a</dc:creator>
      <dc:date>2015-07-21T22:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Question about log-based variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Question-about-log-based-variables/m-p/207916#M11184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote" modifiedtitle="true"&gt;
&lt;P&gt;sara.a wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Values that were too small to be measured were treated as missing data.&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;That amounts to left censoring. Wouldn't that automatically create an upward bias in your location (mean, median, etc.) estimates?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 01:30:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Question-about-log-based-variables/m-p/207916#M11184</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2015-07-22T01:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Question about log-based variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Question-about-log-based-variables/m-p/207917#M11185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can see how it could cause that...but I'm not sure what else to do. Because for those observations not enough biological sample was obtained for a proper measurement to be taken. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 06:01:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Question-about-log-based-variables/m-p/207917#M11185</guid>
      <dc:creator>sara_a</dc:creator>
      <dc:date>2015-07-22T06:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Question about log-based variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Question-about-log-based-variables/m-p/207918#M11186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you trying to do some&amp;nbsp; Regression ? Check Box transformation &lt;/P&gt;&lt;P&gt;OR use proc tranreg which is designed for such purpose .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 12:32:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Question-about-log-based-variables/m-p/207918#M11186</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-07-22T12:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Question about log-based variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Question-about-log-based-variables/m-p/207919#M11187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here are a few articles that discuss the problem you mention and suggest a few potential work-arounds:&lt;/P&gt;&lt;P&gt;&lt;A href="http://blogs.sas.com/content/iml/2014/07/09/scatter-plots-with-log-axes.html" title="http://blogs.sas.com/content/iml/2014/07/09/scatter-plots-with-log-axes.html"&gt;http://blogs.sas.com/content/iml/2014/07/09/scatter-plots-with-log-axes.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://blogs.sas.com/content/iml/2011/04/27/log-transformations-how-to-handle-negative-data-values.html" title="http://blogs.sas.com/content/iml/2011/04/27/log-transformations-how-to-handle-negative-data-values.html"&gt;http://blogs.sas.com/content/iml/2011/04/27/log-transformations-how-to-handle-negative-data-values.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 15:23:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Question-about-log-based-variables/m-p/207919#M11187</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2015-07-22T15:23:41Z</dc:date>
    </item>
  </channel>
</rss>

