R/fit.coxph.R

Defines functions fit.coxph

Documented in fit.coxph

fit.coxph <- function(response, x, cplx,...)
{
actual.data <- as.data.frame(x)
actual.data$time <- response[,"time"]
actual.data$status <- response[,"status"]

res <- coxph(Surv(time, status)~., data=actual.data, ...)
res
}

Try the peperr package in your browser

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

peperr documentation built on May 2, 2019, 4:08 a.m.