R/glmc-utility.r

"glmc.getXlevels" <-
function (Terms, m) 
{
    xvars <- as.character(attr(Terms, "variables"))[-1]
    if ((yvar <- attr(Terms, "response")) > 0) 
        xvars <- xvars[-yvar]
    if (length(xvars) > 0) {
        xlev <- lapply(m[xvars], levels)
        xlev[!sapply(xlev, is.null)]
    }
    else NULL
}

Try the glmc package in your browser

Any scripts or data that you put into this service are public.

glmc documentation built on May 1, 2019, 10:52 p.m.