A conventional approach to handle 0 in log transformation is to simply
add 1 to all data, log_1(x) = log(x+1)
. Also see ash
.
1 | log_1(x)
|
x |
a numeric vector |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.