iid.prodlim | R Documentation |
Compute the influence function for each observation used to estimate the model
## S3 method for class 'prodlim'
iid(x, add0 = FALSE, ...)
x |
A prodlim object. |
add0 |
[logical] add the 0 to vector of relevant times. |
... |
not used. For compatibility with the generic method. |
This function is a simplified version of the iidCox function of the riskRegression package. Formula for the influence function can be found in (Ozenne et al., 2017).
Brice Ozenne
Brice Ozenne, Anne Lyngholm Sorensen, Thomas Scheike, Christian Torp-Pedersen and Thomas Alexander Gerds. riskRegression: Predicting the Risk of an Event using Cox Regression Models. The R Journal (2017) 9:2, pages 440-460.
library(data.table)
library(prodlim)
set.seed(10)
dt <- simBuyseTest(10)
setkeyv(dt, "treatment")
e.KM <- prodlim(Hist(eventtime,status)~treatment, data = dt)
lava::iid(e.KM)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.