Skip to content

Viewing code

2 messages · Stephen Collins, jim holtman

#
since 'glm' is an object, just type its name at the command prompt:
function (formula, family = gaussian, data, weights, subset,
    na.action, start = NULL, etastart, mustart, offset, control =
glm.control(...),
    model = TRUE, method = "glm.fit", x = FALSE, y = TRUE, contrasts = NULL,
    ...)
{
    call <- match.call()
    if (is.character(family))
        family <- get(family, mode = "function", envir = parent.frame())
    if (is.function(family))
        family <- family()
    if (is.null(family$family)) {
        print(family)
        stop("'family' not recognized")
    }
 ...

On Wed, Dec 24, 2008 at 12:49 PM, Stephen Collins
<Stephen_Collins at aon.com> wrote: