R version 3.1.1 RC (2014-07-04 r66081) -- "Sock it to Me" Copyright (C) 2014 The R Foundation for Statistical Computing Platform: x86_64-unknown-linux-gnu (64-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > ## Example in which the fit for the null deviance fails to converge: > # https://stat.ethz.ch/pipermail/r-help/2012-May/313161.html > Y <- c(rep(0,35),1,2,0,6,8,16,43) > beta <- 42:1 > cst <- lchoose(42, beta) > tau <- (beta^2)/2 > fit <- glm(formula = Y ~ offset(cst) + beta + tau, family = poisson) Warning messages: 1: glm.fit: algorithm did not converge 2: In glm(formula = Y ~ offset(cst) + beta + tau, family = poisson) : fitting to calculate the null deviance did not converge -- increase 'maxit'? > > proc.time() user system elapsed 0.136 0.016 0.144