Learn R Programming

groupTesting (version 1.3.0)

glmLink: 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"))

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.

Arguments

fn.name

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

Examples

Run this code

library(groupTesting)

## Try:
glmLink("logit")

Run the code above in your browser using DataLab