mada (version 0.5.8)

talpha: The \(t_\alpha\) transformation as a link function for binary GLMs.

Description

A parametric link function, i.e. a family of link functions intended for binary data.

Usage

talpha(alpha, verbose = FALSE,
  splineinv = TRUE, eps = 2 * .Machine$double.eps, maxit = 100)

Arguments

alpha

numeric, must be larger than 0 and smaller than 2.

verbose

logical, warn if truncation occurs when link function or inverse are used.

splineinv

logical, use spline interpolation for calculation of inverse link?

eps

if splineinv is FALSE, a Newton-Raphson algorithm is run to calculate the inverse. The argument eps determines when to terminate this algorithm. Ignored if splineinv is TRUE.

maxit

maximum number of iterations for Newton-Raphson. Ignored if splineinv is TRUE.

Value

An object of class "link-glm", see family and family. Intended for use with glm.

Examples

Run this code
# NOT RUN {
canonical <- binomial(link = talpha(1)) # logit-link
talpha_fam <- function(alpha)binomial(link = talpha(alpha)) # talpha family
## A call to glm might look like this: glm(formula, family = talpha_fam(1.5))
# }

Run the code above in your browser using DataCamp Workspace