Usage
# fit <- cph(formula=Surv(ftime,event) ~ terms, x=TRUE, y=TRUE, ...)
## S3 method for class 'cph':
validate(fit, method="boot", B=40, bw=FALSE, rule="aic",
type="residual", sls=.05, aics=0, force=NULL, estimates=TRUE,
pr=FALSE, dxy=TRUE, u, tol=1e-9, \dots)## S3 method for class 'psm':
validate(fit, method="boot",B=40,
bw=FALSE, rule="aic", type="residual", sls=.05, aics=0,
force=NULL, estimates=TRUE, pr=FALSE,
dxy=TRUE, tol=1e-12, rel.tolerance=1e-5, maxiter=15, \dots)
dxy.cens(x, y, type=c('time','hazard'))
Arguments
fit
a fit derived cph
. The options x=TRUE
and y=TRUE
must have been specified. If the model contains any stratification factors
and dxy=TRUE,
the options surv=TRUE
and time.inc=u
mus
B
number of repetitions. For method="crossvalidation"
, is the
number of groups of omitted observations.
rel.tolerance,maxiter,bw
TRUE
to do fast step-down using the fastbw
function,
for both the overall model and for each repetition. fastbw
keeps parameters together that represent the same factor.
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^2$ 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^2$ for
all variables deleted. For dxy.cens
, specify
type="hazard"
if x
is on the hazard or
sls
significance level for a factor to be kept in a model, or for judging the
residual $\chi^2$.
aics
cutoff on AIC when rule="aic"
.
pr
TRUE
to print results of each repetition
dxy
set to TRUE
to validate Somers' $D_{xy}$ using
dxy.cens
, which is fast until n > 500,000. Uses the
survival
package's survConcordance.fit
service
function for survConcordance<
u
must be specified if the model has any stratification factors and
dxy=TRUE
.
In that case, strata are not included in $X\beta$ and the
survival curves may cross. Predictions at time t=u
are
correlated with observed
y
a Surv
object that may be uncensored or
right-censored