Learn R Programming

riskRegression (version 1.4.3)

selectJump: Evaluate the influence function at selected times

Description

Evaluate the influence function at selected times

Usage

selectJump(IF, times, type)

Arguments

IF

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 IF

Examples

Run this code
# NOT RUN {
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