x2pos: Transform x to a positive number by: y = log(e^x + 1)

View source: R/MinorOptimizationFunctions.R

x2posR Documentation

Transform x to a positive number by: y = log(e^x + 1)

Description

Transform x to a positive number by: y = log(e^x + 1)

Usage

x2pos(x, nargout)

Arguments

x

scalar or vector

nargout

1 or 2

References

This function is based on the "x2pos" function by Le and Singleton (2018).
"A Small Package of Matlab Routines for the Estimation of Some Term Structure Models."
(Euro Area Business Cycle Network Training School - Term Structure Modelling) Available at: https://cepr.org/40029


MultiATSM documentation built on April 4, 2025, 1:40 a.m.