Transform x to a positive number by: y = log(e^x + 1)
x2pos(x, nargout)
x
: scalar or vectornargout
: 1 or 2This 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
Useful links