log1ps | R Documentation |
log1p
With a BaseSigned log1p
with a base.
log1ps(x, base = exp(1))
x |
Numerical vector. |
base |
Positive number >= 2. Default value is exp(1). |
Compute log1ps(x, base) = sign(x) * log1p(abs(x)) / log(base)
.
This function is the inverse of expm1s
.
Numeric vector.
expm1s
x <- c(-100, -10, -1, -0.1, 0, 0.1, 1, 10, 100)
y <- log1ps(x, base = 10)
# this test if the inverse is ok
stopifnot(isTRUE(all.equal(x, eflTools::expm1s(y, base = 10))))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.