speffSurv conducts estimation and testing of the treatment effect in a two-group randomized
clinical trial with a right-censored time-to-event endpoint. It improves efficiency by leveraging baseline predictors
of the endpoint.speffSurv(formula, data, method=c("exhaustive", "forward",
"backward"), optimal=c("cp", "bic", "rsq"), trt.id,
conf.level=0.95, fixed=FALSE)~ operator and the linear
predictor on the right. The response is a survival object of class Surv. The linear predictor specifies
baseline variables that are formula and trt.id.regsubsets function. "exhaustive" (default) performs the all-subsets selection, whereas
"forward" and "backwcp", Mallow's Cp,
which is equivalent to AIC. The other options are "bic" for BIC and "rsq" for R-squared.summary.speffSurv.FALSE (default), automated selection procedure is used for predicting the
endpoint. Otherwise, all baseline variables specified in the formula are used.speffSurv returns an object of class "speffSurv" which can be processed by
summary.speffSurv to obtain or print a summary of the results. An object of class "speffSurv"
is a list containing the following components:beta.rndSpace and censSpace containing formula objects for the optimal
selected linear regression models that characterize the optimal elements in the randomization and censoring space,
respectively. Set to NULL if fixed=TRUE.TRUE, the efficient estimator utilizes all baseline covariates specified in the
formula. Otherwise, the automated selection procedure is used to identify covariates that ensure optimality.summary.speffSurv.regsubsets, two optimal linear regression models
are developed to characterize the influence function of an estimator that is more efficient
than the maximum partial likelihood estimator. The "efficient" influence function is searched in the space of
influence functions that determine all regular and asymptotically linear estimators for the treatment effect
(for definitions see, for example, Tsiatis, 2006). The space of influence functions has three components: the
estimation space that characterizes all regular and asymptotically linear estimators that do not use baseline
covariates. The other two subspaces, the randomization and censoring space, use baseline covariates to improve
the efficiency in the estimation of the treatment effect (Lu, 2008). The automated model selection procedure is
used to identify functions in the randomization and censoring space that satisfy a prespecified optimality criterion
and that lead to efficiency gain by using baseline predictors of the outcome.
The user has the option to avoid the automated variable selection and, instead, use all variables specified in the
formula for the estimation of the treatment effect. This is achieved by setting fixed=TRUE.
speffSurv does not allow missing values in the data.summary.speffSurvstr(ACTG175)
data <- na.omit(ACTG175[ACTG175$arms==0 | ACTG175$arms==1,])
### efficiency-improved estimation of log hazard ratio using
### baseline covariates
fit1 <- speffSurv(Surv(days,cens) ~ cd40+cd80+age+wtkg+drugs+karnof+z30+
preanti+symptom, data=data, trt.id="arms")
### 'fit2' coerces the use of all specified baseline covariates;
### automated selection procedure is skipped
fit2 <- speffSurv(Surv(days,cens) ~ cd40+cd80+age+wtkg+drugs+karnof+z30+
preanti+symptom, data=data, trt.id="arms", fixed=TRUE)Run the code above in your browser using DataLab