Skip to contents

Evaluate a link function

Usage

link(l, x)

link_inverse(l, eta)

link_derivative(l, x)

Arguments

l

a corehydro_link from link_function().

x, eta

numeric vectors on the data and linear-predictor scales.

Value

a numeric vector the same length as the input.

Examples

l <- link_function("Logit")
link(l, c(0.1, 0.5, 0.9))
#> [1] -2.197225  0.000000  2.197225