R/untangle.offset.R

Defines functions untangle.offset

# ========================================================= 
# Extract offset name
# =========================================================

untangle.offset <- function(tt) {
    spc <- attr(tt, "offset")
    if (length(spc) == 0) 
        vars = character(0)
    facs <- attr(tt, "factors")
    fname <- dimnames(facs)
    vars = (fname[[1]])[spc]
    return(vars)
}
joolee0918/Mfrailty documentation built on May 7, 2019, 6:58 p.m.