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])