glmLink: Link Functions in the Class of Generalized Linear Models

View source: R/linkfns.R

glmLinkR Documentation

Link Functions in the Class of Generalized Linear Models

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

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


library(groupTesting)

## Try:
glmLink("logit")


groupTesting documentation built on Nov. 6, 2023, 9:06 a.m.