R/pretty.r

Defines functions rdv remove.term rdv.glm rdv.coxph pretty.glm pretty.coxph

rdv <- function(x, ...) {
    UseMethod("rdv")
}

remove.term <- function(f, term) {
    lr <- left_right(f)
    l <- lr$left
    r <- lr$right
    r2 <- r[!grepl(paste("^", term, "$", sep = ""), r) & !grepl(paste("^", term, ":", sep = ""), r) & !grepl(paste(":", term, "$", sep = ""), r) & !grepl(paste(":", term, ":", sep = ""), r)]
    paste(l, "~", paste(r2, collapse = "+"))
}

rdv.glm <- function(x, ...) {

}

rdv.coxph <- function(x, ...) {

}

pretty <- function (x, ...) {
    UseMethod("pretty")
}

pretty.glm <- function(x, ...) {

}

pretty.coxph <- function(x, ...) {

}
eusebe/biostat2 documentation built on Dec. 27, 2019, 4:22 p.m.