Extra Canonical Link Family Objects for Generalized Linear Models

Extra family objects in "weird" scenarios, particularly logistic or log-linear model with unbounded or non-binary/non-integer outcomes. Provides binomial_extra() and poisson_extra() as generalizations of binomial() and poisson(). The use of canonical link with the corresponding working likelihood in glm() ensures convexity, making model fitting reliable and independent of starting value. Robert WM Wedderburn (1974) and Peter McCullagh (1983) justified this method to fit generalized linear (mean) models with quasi-/working likelihood.


CanonicalFamilyExtra

Extra Canonical Link Family Objects for Generalized Linear Models (R package)

To install from Github:

devtools::install_github("Qiu-Hongxiang-David/CanonicalFamilyExtra")

Example:

library(CanonicalFamilyExtra)
x <- rnorm(100)
y <- 1/(1 + exp(-x)) + rnorm(100)

# fit logistic model
glm(y~x, family = binomial_extra())

# fit log-linear model
glm(y~x, family = poisson_extra())

More naive approaches appear not working.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("CanonicalFamilyExtra")

1.0.0 by Hongxiang Qiu, 5 months ago


Browse source code at https://github.com/cran/CanonicalFamilyExtra


Authors: Hongxiang Qiu [aut, cre]


Documentation:   PDF Manual  


GPL (>= 2) license


Imports stats

Suggests gee, geepack, SuperLearner, ipred, glmnet


See at CRAN