crossVal(exset, survTime, censor, diseaseType="cancer", nbest=10, maxNvar=25, p=100, cutPoint=50, verbose=FALSE, noFolds=10, noRuns=10)bic.surv in the BMA package.
The default is 10.bic.surv from the BMA package.
The default is 25.bic.surv algorithm. This number is
assumed to be less than the total number of genes in the training data.
A larger p usually requires longer computational time as more iterations
of the bic.surv algorithm are potentially applied. The default is
100.noRuns and noFolds
arguments respectively. For each run of cross validation, the training
set, survival times, and censor data are re-ordered according to a
random permutation. For each fold of cross validation, $1/n$th of the data
is set aside to act as the validation set. In each fold, the
iterateBMAsurv.train.predict.assess function is called in order
to carry out a complete run of survival analysis. This means the
univariate ranking measure for this cross validation function is Cox
Proportional Hazards Regression; see iterateBMAsurv.train.wrapper
to experiment with alternate univariate ranking methods. With each run
of cross validation, the survival analysis statistics are saved and
written to file.Raftery, A.E. (1995). Bayesian model selection in social research (with Discussion). Sociological Methodology 1995 (Peter V. Marsden, ed.), pp. 111-196, Cambridge, Mass.: Blackwells.
Volinsky, C., Madigan, D., Raftery, A., and Kronmal, R. (1997) Bayesian Model Averaging in Proprtional Hazard Models: Assessing the Risk of a Stroke. Applied Statistics 46: 433-448.
Yeung, K.Y., Bumgarner, R.E. and Raftery, A.E. (2005) Bayesian Model Averaging: Development of an improved multi-class, gene selection and classification tool for microarray data. Bioinformatics 21: 2394-2402.
iterateBMAsurv.train.predict.assess
iterateBMAsurv.train.wrapper,
iterateBMAsurv.train,
singleGeneCoxph,
predictBicSurv,
predictiveAssessCategory,
trainData,
trainSurv,
trainCenslibrary (BMA)
library(iterativeBMAsurv)
data(trainData)
data(trainSurv)
data(trainCens)
## Perform 1 run of 2-fold cross validation on the training set, using p=10 genes and nbest=5 for fast computation
cv <- crossVal (exset=trainData, survTime=trainSurv, censor=trainCens, diseaseType="DLBCL", noRuns=1, noFolds=2, p=10, nbest=5)
## Upon completion of this function, all relevant output files will be in the working R directory.Run the code above in your browser using DataLab