glmLink: Link Functions in the Class of Generalized Linear Models

Description Usage Arguments Value Examples

View source: R/linkfns.R

Description

This function provides characteristics of common link functions (logit, probit, and comlementary log-log). Specifically, based on the link name, the function with its inverse, first derivative, and second derivative is provided.

Usage

1
glmLink(fn.name = c("logit", "probit", "cloglog"))

Arguments

fn.name

One of the three: "logit", "probit", and "cloglog".

Value

A list with components:

g

The link function corresponding to "logit", "probit", or "cloglog".

dg

The first derivative of g.

d2g

The second derivative of g.

gInv

The inverse of g.

Examples

1
2
## Try:
glmLink("logit")

groupTesting documentation built on Nov. 22, 2021, 9:09 a.m.