Description Usage Arguments Details Value References Examples
Filter function for Prognostic and preditive biomarker signature development for Exploratory Subgroup Identification in Randomized Clinical Trials
1 2 3 4 5 6 7 8 9 10 11 |
data |
input data frame |
type |
type of response variable: "c" continuous; "s" survival; "b" binary |
yvar |
variable (column) name for response variable |
xvars |
vector of variable names for predictors (covariates) |
censorvar |
variable name for censoring (1: event; 0: censor), default = NULL |
trtvar |
variable name for treatment variable, default = NULL (prognostic signature) |
trtref |
coding (in the column of trtvar) for treatment arm, default = 1 (no use for prognostic signature) |
n.boot |
number of bootstrap for the BATTing procedure |
cv.iter |
Algotithm terminates after cv.iter successful iterations of cross-validation, or after max.iter total iterations, whichever occurs first |
pre.filter |
NULL (default), no prefiltering conducted;"opt", optimized number of predictors selected; An integer: min(opt, integer) of predictors selected |
filter.method |
NULL (default), no prefiltering; "univariate", univaraite filtering; "glmnet", glmnet filtering |
The function contains two algorithms for filtering high-dimentional multivariate (prognostic/predictive) biomarker candidates via univariate fitering (used p-values of group difference for prognostic case, p-values of interaction term for predictive case); LASSO/Elastic Net method. (Tian L. et al 2012)
var |
a vector of filter results of variable names |
Tian L, Alizadeh A, Gentles A, Tibshirani R (2012) A Simple Method for Detecting Interactions between a Treatment and a Large Number of Covariates. J Am Stat Assoc. 2014 Oct; 109(508): 1517-1532.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | ## Not run:
data(Sepsis.train)
yvar="survival"
xvars=names(Sepsis.train)[2:12]
trtvar="THERAPY"
trtref="active"
set.seed(123)
filter.res <- filter(data=Sepsis.train,
type="b",
yvar=yvar,
xvars=xvars,
trtvar=trtvar,
trtref=trtref,
pre.filter=20,
filter.method="univariate")
filter.res
set.seed(123)
filter.res <- filter(data=Sepsis.train,
type="b",
yvar=yvar,
xvars=xvars,
trtvar=trtvar,
trtref=trtref,
pre.filter="opt",
filter.method="glmnet")
filter.res
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.