R/residuals.coxph.null.R

Defines functions residuals.coxph.null

Documented in residuals.coxph.null

# $Id $
residuals.coxph.null <-
  function(object, type=c("martingale", "deviance", "score", "schoenfeld"),
           collapse=FALSE, weighted=FALSE,  ...)
    {
    type <- match.arg(type)
    if (type=='martingale' || type=='deviance') NextMethod()
    else stop(paste("\'", type, "\' residuals are not defined for a null model",
			sep=""))
    }

Try the survival package in your browser

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

survival documentation built on Aug. 14, 2023, 9:07 a.m.