binomialEF {extendedFamily}R Documentation

Additional Binomial Links For Generalized Linear Models

Description

Additional Binomial Links For Generalized Linear Models

Usage

binomialEF(link = "loglog", alpha = 1)

Arguments

link

name of link function. One of loglog, logc, identity, or odds-power (Default: loglog)

alpha

power for odds-power link. Not used otherwise. (Default: 1)

Details

family is a generic function with methods for classes "glm" and "lm".

The loglog link works well for many datasets. The range of the link is negative infinity to positive infinity. For all other links, this is not true. This can cause a failure to converge in R's glm function. If this happens, the link does not work well for the training data. Try another link.

Value

An object of class "family" (which has a concise print method). This is a list with elements

Examples

library(stats)
library(extendedFamily)

# loglog example
data(heart)
model <- glm(
  formula = death ~ anterior + hcabg +
    kk2 + kk3 + kk4 + age2 + age3 + age4,
  data = heart,
  family = binomialEF(link = "loglog")
)

[Package extendedFamily version 0.2.4 Index]