Learn R Programming

riskRegression (version 1.3.7)

selectJump: Evaluate the influence function at selected times

Description

Evaluate the influence function at selected times

Usage

selectJump(IC, times, type)

Arguments

IC

influence function returned by iidCox

times

the times at which the influence function should be assessed

type

can be "hazard" or/and "cumhazard".

Value

An object with the same dimensions as IC

Examples

Run this code

library(survival)

set.seed(10)
d <- SimSurv(1e2)
fit <- coxph(Surv(time,status)~X1 * X2,data=d, ties="breslow", x = TRUE, y = TRUE)

IFall <- iidCox(fit)
selectJump(IFall, times = 1:2, type = "cumhazard") 
 

Run the code above in your browser using DataLab