elogis: Empirical logistic transformation

elogisR Documentation

Empirical logistic transformation

Description

Empirical logistic transformation for logistic models with data showing (quasi-)complete separation. The function is intended to be used as a link function in GLM(M)s.

Usage

elogis()

Author(s)

Formula from McCullagh & Nelder in their seminal book 'Generalized Linear Models'. R code from Eric Wajnberg & Jean-Sebastien Pierre.

Examples

# An example with 3 groups and complete separation (from E. Wajnberg)
tab <- data.frame(case=letters[1:3],yes=c(25,30,0),no=c(1,0,20))
tab
## Not run: 
mod <- glm(cbind(yes,no)~case,family=binomial(link=elogis()),data=tab)
# Warnings are normal
summary(mod)
## End(Not run)

RVAideMemoire documentation built on Nov. 6, 2023, 5:07 p.m.