MMMS(time, event, treat, bio, covar = NULL, pct.lb = 20, pct.ub = 80, n.boot = 1000, pos.direction = FALSE, nfolds = 5, alpha = 0.5, verbose = FALSE, seed = NULL)NULL for not including any covariates.
FALSE, i.e. a hazard ratio < 1 is desirable.
cv.glmnet() in the ``glmnet'' package is called, which requires cross validation to choose the tuning parameter ``lambda''. Default is 5.
FALSE.
NULL for not setting any seed.
get.score().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.get.subgroup().score for the optimal subgroup identified.n.boot bootstraps. NA is returned if n.boot=0.subgrp.pval.MMMS() calls several functions that could also be used separately: get.score(), get.score.main(), get.subgroup(), etc.As is described in Li et al. (2014), the bootstrap p-value is based on a statistically valid test whose type I error is approximately controlled at the nominal level. However, caution is needed for interpreting the estimates of subgroup size and treatment-by-subgroup interaction effect, as bias has been observed in these estimates. Approaches for correcting bias in the estimates may be implemented in future versions of the ``MMMS'' package.
get.score, get.subgroup.
# load the dataset
data(simdat)
# estimate the MMMS (No bootstrap is considered for a quick illustration)
mmms = with(simdat,MMMS(time,event,treat,bio,covar,pct.lb=20,pct.ub=80,n.boot=0,
pos.direction=FALSE,nfolds=5,alpha=0.5,verbose=TRUE,seed=12345))
Run the code above in your browser using DataLab