get.score(time, event, treat, bio, covar = NULL, nfolds = 5, alpha = 0.5, pos.direction = FALSE)
NULL
for not including any covariates.
cv.glmnet()
in the ``glmnet'' package is called, which requires cross validation to choose the tuning parameter ``lambda''. Default is 5.
FALSE
, i.e. a hazard ratio < 1 is desirable.
treat==1
).glmnet
fitted object for obtaining the MMMS composite scores.lambda
value chosen for obtaining the MMMS composite scores.alpha
value used for obtaining the MMMS composite scores.MMMS()
to calculate MMMS composite scores. An interaction model is considered by assuming that a treatment-specific subgroup exists. The composite scores based on interaction terms and main-effect terms are both calculated via elastic net as implemented by the ``glmnet'' package. The composite scores based on interaction terms are used for identifying treatment-specific subgroups, while those based on main-effect terms are used for adjusting for biomarker main effect.
MMMS
# load the dataset
data(simdat)
attach(simdat)
# get composite scores using an interaction model
score = get.score(time,event,treat,bio,covar,nfolds=5,alpha=0.5,
pos.direction=FALSE)
Run the code above in your browser using DataLab