residualNull: Make a residual plot of NULL model

View source: R/residualNull.R

residualNullR Documentation

Make a residual plot of NULL model

Description

Make a residual plot of NULL model

Usage

residualNull(x, add.log = TRUE, type = "martingale")

Arguments

x

An object of calss coxph

add.log

logical If true, log of predictor varaibles are added

type

character type of residuals

Examples

library(survival)
data(pharmacoSmoking,package="asaur")
pharmacoSmoking$priorAttemptsT=pharmacoSmoking$priorAttempts
pharmacoSmoking$priorAttemptsT[pharmacoSmoking$priorAttemptsT>20]=20
x=coxph(Surv(ttr,relapse)~age+priorAttemptsT+longestNoSmoke,data=pharmacoSmoking)
residualNull(x)

autoReg documentation built on Nov. 14, 2023, 9:07 a.m.