R/coef.R

Defines functions coef.lm.madlib.grps coef.lm.madlib

Documented in coef.lm.madlib coef.lm.madlib.grps

coef.logregr.madlib <- coef.lm.madlib <- function(object, ...)
{
    if (object$has.intercept)
        nams <- c("(Intercept)", object$ind.vars)
    else
        nams <- object$ind.vars
    nams <- .reverse.consistent.func(nams)
    for (i in seq_len(length(object$col.name)))
        if (object$col.name[i] != object$appear[i])
            nams <- gsub(object$col.name[i], object$appear[i], nams)
    setNames(object$coef, nams)
}


coef.logregr.madlib.grps <- coef.lm.madlib.grps <- function(object, ...)
lapply(object, coef)
pivotalsoftware/PivotalR documentation built on March 18, 2021, 9:37 a.m.