<?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: How to do regressions with log 0 transformed data ('-Inf' value) ?  in Spatial Statistics Questions</title>
    <link>https://community.esri.com/t5/spatial-statistics-questions/how-to-do-regressions-with-log-0-transformed-data/m-p/720442#M2279</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;some suggestions from various sources&lt;/P&gt;&lt;UL style="background-color: transparent; clear: both; color: #222222; font-family: Helvetica,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px 0px 0px 40px; margin: 0px;"&gt;&lt;LI style="line-height: 19.6px; overflow: visible; word-wrap: break-word;"&gt;Add a constant value to each value of variable then take a log transformation&lt;/LI&gt;&lt;LI style="line-height: 19.6px; overflow: visible; word-wrap: break-word;"&gt;Impute zero value with mean.&lt;/LI&gt;&lt;LI style="line-height: 19.6px; overflow: visible; word-wrap: break-word;"&gt;Take square root instead of log for transformation&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;A class="link-titled" href="https://stats.stackexchange.com/questions/1444/how-should-i-transform-non-negative-data-including-zeros" title="https://stats.stackexchange.com/questions/1444/how-should-i-transform-non-negative-data-including-zeros"&gt;How should I transform non-negative data including zeros? - Cross Validated&lt;/A&gt; has others and&lt;/P&gt;&lt;P&gt;scipy (which is available with arcmap and ArcGIS pro) has&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.boxcox.html" title="https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.boxcox.html"&gt;scipy.stats.boxcox — SciPy v1.1.0 Reference Guide&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so your suggestion is reasonable, but you might want to explore the alternatives... after all you are transforming the data in order to use parametric statistics... the alternatives are to use their non-parametric equivalents which sadly aren't implemented in most gis packages.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Aug 2018 16:58:14 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2018-08-09T16:58:14Z</dc:date>
    <item>
      <title>How to do regressions with log 0 transformed data ('-Inf' value) ?</title>
      <link>https://community.esri.com/t5/spatial-statistics-questions/how-to-do-regressions-with-log-0-transformed-data/m-p/720441#M2278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello !&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm performing regression analysis (OLS and WGR)&amp;nbsp;using biodiversity data, between sampling effort and species richness values. I have a country-size grid-cell data set and I want to find out how does this relationship varies in different areas of the country.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some of the grid-cells have 0&amp;nbsp;as value, because there were no organisms sampled in that area and therefore no species detected. The zeros are important for me to keep (in terms of neighbors), they are grid-cells that are&amp;nbsp;not unknown, the are actually zero sampling effort areas. The problem is that I have log transform my data and those 0 values become -Inf values, so I cannot perform any analysis with those grids.&amp;nbsp;My solution was doing a different log transformation, using log(value+1). In this way, the 0 becomes a 1, and log(1)=0. So, with this log transformation I can now include these zero value grids.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this OK? Do you have any other possible solution&amp;nbsp;for this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2018 15:24:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-statistics-questions/how-to-do-regressions-with-log-0-transformed-data/m-p/720441#M2278</guid>
      <dc:creator>FlorenciaGrattarola</dc:creator>
      <dc:date>2018-08-09T15:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to do regressions with log 0 transformed data ('-Inf' value) ?</title>
      <link>https://community.esri.com/t5/spatial-statistics-questions/how-to-do-regressions-with-log-0-transformed-data/m-p/720442#M2279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;some suggestions from various sources&lt;/P&gt;&lt;UL style="background-color: transparent; clear: both; color: #222222; font-family: Helvetica,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px 0px 0px 40px; margin: 0px;"&gt;&lt;LI style="line-height: 19.6px; overflow: visible; word-wrap: break-word;"&gt;Add a constant value to each value of variable then take a log transformation&lt;/LI&gt;&lt;LI style="line-height: 19.6px; overflow: visible; word-wrap: break-word;"&gt;Impute zero value with mean.&lt;/LI&gt;&lt;LI style="line-height: 19.6px; overflow: visible; word-wrap: break-word;"&gt;Take square root instead of log for transformation&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;A class="link-titled" href="https://stats.stackexchange.com/questions/1444/how-should-i-transform-non-negative-data-including-zeros" title="https://stats.stackexchange.com/questions/1444/how-should-i-transform-non-negative-data-including-zeros"&gt;How should I transform non-negative data including zeros? - Cross Validated&lt;/A&gt; has others and&lt;/P&gt;&lt;P&gt;scipy (which is available with arcmap and ArcGIS pro) has&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.boxcox.html" title="https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.boxcox.html"&gt;scipy.stats.boxcox — SciPy v1.1.0 Reference Guide&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so your suggestion is reasonable, but you might want to explore the alternatives... after all you are transforming the data in order to use parametric statistics... the alternatives are to use their non-parametric equivalents which sadly aren't implemented in most gis packages.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2018 16:58:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-statistics-questions/how-to-do-regressions-with-log-0-transformed-data/m-p/720442#M2279</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-08-09T16:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to do regressions with log 0 transformed data ('-Inf' value) ?</title>
      <link>https://community.esri.com/t5/spatial-statistics-questions/how-to-do-regressions-with-log-0-transformed-data/m-p/720443#M2280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks for your reply and suggestions Dan! and for the stack post, I was not finding any question targeting my doubt.&lt;/P&gt;&lt;P&gt;I've heard of the zero-inflated model as well, but to run in ArcGis I'll have to try with the alternative of&amp;nbsp;Box-Cox transformations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2018 17:18:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-statistics-questions/how-to-do-regressions-with-log-0-transformed-data/m-p/720443#M2280</guid>
      <dc:creator>FlorenciaGrattarola</dc:creator>
      <dc:date>2018-08-09T17:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to do regressions with log 0 transformed data ('-Inf' value) ?</title>
      <link>https://community.esri.com/t5/spatial-statistics-questions/how-to-do-regressions-with-log-0-transformed-data/m-p/720444#M2281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem Florencia... if it works out, you can return and mark the question answered&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2018 19:41:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-statistics-questions/how-to-do-regressions-with-log-0-transformed-data/m-p/720444#M2281</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-08-09T19:41:23Z</dc:date>
    </item>
  </channel>
</rss>

