corehydro
  • Examples
  • Porting Status
  • Python Reference
  • R Reference

On this page

  • link_inverse
    • Parameters
    • Returns
    • Examples

link_inverse

link_inverse(l, eta)

Evaluate the inverse of a link function: link-space back to real-space.

Parameters

Name Type Description Default
l Link From :func:link_function. required
eta array_like Values on the linear-predictor scale. required

Returns

Name Type Description
numpy.ndarray

Examples

>>> from corehydropy import link_function, link_inverse
>>> l = link_function("Logit")
>>> link_inverse(l, [-2.19722458, 0.0, 2.19722458])
array([0.1, 0.5, 0.9])
 

corehydro is an independent open-source port of the USACE-RMC Numerics and RMC-BestFit libraries. 0BSD licensed.