Usage
tcoxph(formula, na.time=c("remove","censor"),verbose=FALSE, data, weights, subset, na.action, init, control, ties = c("efron", "breslow", "exact"), singular.ok = TRUE, robust, model = FALSE, x = FALSE, y = TRUE, tt, method = ties, ...)
Arguments
formula
a formula object, with the response on the left of a ~ operator, and the terms on the right. The response must be a survival object as returned by the Surv function. In case that time-to-event data are covariates, use the wrapper time() to indicate the time-to-event data as covariates.
na.time
a missing-data filter function for time-to-event covariates. The option 'remove' will remove all the data with 'NA', while the option 'censor' will treat the missing data as censored and then replace with the logest time. Default is 'remove'.
verbose
logical. Should R report extra information on progress? Default is 'FALSE'.
data
a data.frame in which to interpret the variables named in the formula, or in the subset and the weights argument.
weights
vector of case weights. For a thorough discussion of these see the book by Therneau and Grambsch.
subset
expression indicating which subset of the rows of data should be used in the fit. All observations are included by default.
na.action
a missing-data filter function. This is applied to the model.frame after any subset argument has been used. Default is options()\$na.action.
init
vector of initial values of the iteration. Default initial value is zero for all variables.
control
Object of class coxph.control specifying iteration limit and other control options. Default is coxph.control(...).
ties
a character string specifying the method for tie handling. If there are no tied death times all the methods are equivalent. Nearly all Cox regression programs use the Breslow method by default, but not this one. The Efron approximation is used as the default here, it is more accurate when dealing with tied death times, and is as efficient computationally. The ``exact partial likelihood'' is equivalent to a conditional logistic model, and is appropriate when the times are a small set of discrete values. See further below.
singular.ok
logical value indicating how to handle collinearity in the model matrix. If TRUE, the program will automatically skip over columns of the X matrix that are linear combinations of earlier columns. In this case the coefficients for such columns will be NA, and the variance matrix will contain zeros. For ancillary calculations, such as the linear predictor, the missing coefficients are treated as zeros.
robust
this argument has been deprecated, use a cluster term in the model instead. (The two options accomplish the same goal -- creation of a robust variance -- but the second is more flexible).
model
logical value: if TRUE, the model frame is returned in component model.
x
logical value: if TRUE, the x matrix is returned in component x.
y
logical value: if TRUE, the response vector is returned in component y.
tt
optional list of time-transform functions.
method
alternate name for the ties argument.
...
Other arguments will be passed to coxph.control