residualNull {autoReg}R 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)

[Package autoReg version 0.3.3 Index]