Lookup function for link and repsonse functions via string identifier.
Source:R/lookups.R
link_lookup.RdIf a transformed normal likelihood is passed, the respective built-in link will be returned instead of the identity link that would commonly be used with transformed normal likelihood families.
Examples
link_lookup("log", "gaussian", FALSE)
#> function (x, base = exp(1)) .Primitive("log")
link_lookup("identiy", "logitnormal", FALSE)
#> function (x)
#> {
#> if (any(x < 0 | x > 1)) {
#> stop("The logit link is only defined between 0 and 1!")
#> }
#> return(qlogis(x))
#> }
#> <bytecode: 0x562df7829d90>
#> <environment: namespace:bayesfam>