validate.coxex | R Documentation |
Provides an access to validation stats obtained e.g.
by cross-validation or bootstraping via validate
.
## S3 method for class 'coxex'
validate(
fit,
method = "boot",
B = 40,
bw = FALSE,
rule = "aic",
type = "residual",
sls = 0.05,
aics = 0,
force = NULL,
estimates = TRUE,
pr = FALSE,
...
)
fit |
a 'coxex' model. |
method |
resampling method may be "crossvalidation", "boot" (the default), ".632", or "randomization". |
B |
number of repetitions. |
bw |
TRUE to do fast step-down using the |
rule |
Applies if bw = TRUE. "aic" to use Akaike's information criterion as a stopping rule (i.e., a factor is deleted if the chi-squared falls below twice its degrees of freedom), or "p" to use p-values. |
type |
"residual" or "individual" stopping rule is for individual factors or for the residual chi-squared for all variables deleted |
sls |
significance level for a factor to be kept in a model, or for judging the residual chi-squared |
aics |
cutoff on AIC when rule="aic" |
force |
see |
estimates |
see |
pr |
TRUE to print results of each repetition |
... |
extra arguments passed to |
See: validate.cph
.
a data frame with the following variables:
dataset
: dataset used for computation of the stats
Dxy
: Somers' DXY rank correlation
R2
: Nagelkerke R-squared
Slope
: slope shrinkage
D
: discrimination index D
U
: unreliability index
Q
: the overall quality index
g
: g-index on the log relative hazard
c_index
: Harrell's concordance index.
Harrell, F. E., Lee, K. L. & Mark, D. B. Multivariable prognostic models: Issues in developing models, evaluating assumptions and adequacy, and measuring and reducing errors. Stat. Med. 15, 361–387 (1996).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.