Please specify the package(s) you are using. In this case it should be rms.
val.surv is mainly for an out-of-sample validation, as it does not penalize
for overfitting. calibrate.cph is probably what you should be using.
To use val.surv in the fashion you are trying to use it, specify y=TRUE,
s
Dear R users:
I tried to use val.surv to give an internal validation of survival
prediction model.
I used the sample sources.
# Generate failure times from an exponential distribution
set.seed(123) # so can reproduce results
n <- 1000
age <- 50 + 12*rnorm(n)
sex <- factor(sample(c('
2 matches
Mail list logo