QTECox {quantreg} | R Documentation |
Function to obtain QTE from a Cox model
Description
Computes quantile treatment effects comparable to those of crq model from a coxph object.
Usage
QTECox(x, smooth = TRUE)
Arguments
x |
An object of class coxph produced by |
smooth |
Logical indicator if TRUE (default) then Cox survival function is smoothed. |
Details
Estimates of the Cox QTE,
at
, can be expressed as a function of t as follows:
The Cox survival function,
where
can be estimated by
where $S$ and $t$ denote the
surv
and time
components
of the survfit
object.
Note that since , the above is the
value corresponding to the argument $(1-t)$; and furthermore
Thus the QTE at the mean of x's is:
Since is negative and $log (S)$ is also negative
this has the same sign as
The crq model fits the usual AFT form Surv(log(Time),Status), then
This is the matrix form returned.
Value
taus |
points of evaluation of the QTE. |
QTE |
matrix of QTEs, the ith column contains the QTE for the
ith covariate effect. Note that there is no intercept effect.
see |
Author(s)
Roger Koenker Stephen Portnoy & Tereza Neocleous
References
Koenker, R. and Geling, O. (2001). Reappraising Medfly longevity: a quantile regression survival analysis, J. Amer. Statist. Assoc., 96, 458-468