x2pos function

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

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

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

  • Maintainer: Rubens Moura
  • License: GPL-2 | GPL-3
  • Last published: 2025-03-24