softlogit: The softplus logit transformation

View source: R/transform.R

softlogitR Documentation

The softplus logit transformation

Description

The softplus logit transformation is an alternative to the logit transform for bounded outcomes with positive output.

Usage

softlogit(lower = 0, upper = 1, ...)

Arguments

lower

lower bound of the variable.

upper

upper bound of the variable.

...

not currently used.

Value

A list with the transform and inverse functions.

Author(s)

Alexios Galanos

Examples


y = cumprod(c(1, 1 + rnorm(100,0.01, 0.005)))
B = softlogit(lower = 0,  upper = 15)
yt = B$transform(y)
ye = B$inverse(yt)

tsaux documentation built on April 4, 2025, 3:08 a.m.