Skip to contents

Applies the inverse transformation to convert a parameter from the estimation scale to the natural/interpretable scale. For LogNormal, this exponentiates the value. For Identity, Proportional, and AddErr, the value is returned unchanged.

Usage

transform_value(value, transform)

Arguments

value

The parameter value(s) on the estimation scale, can be a vector

transform

Transformation type(s), can be a vector: "LogNormal", "AddErr", "Proportional", or "Identity"

Value

The back-transformed value(s) on the natural scale

Examples

if (FALSE) { # \dontrun{
transform_value(0.5, "LogNormal")
transform_value(c(0.5, 1.0), "LogNormal")
} # }