Usage
STpredictor_xvBLH(geData, survData, k = 10, cut.off, file = paste(getwd(), "STpredictor.xv.BLH_results", sep = "/"), q = 1, s = 1, a = 2, b = 2, groups = 3, geneweights = NULL
, BLHs = NULL, method = "BFGS", noprior = 1, extras = list())
Arguments
geData
A matrix with the co-variate data of the full set of subjects. It is constructed with the co-variate in the columns and the subjects in the rows.Each cell corresponds to that
rowth subject's column th co-variate's value.
survData
The survival data of the entire set of subjects. It takes on the form of a data frame with at least have the following columns True_STs and censored,
corresponding to the
observed survival times and the censoring status of the subjects consecutively. Censored patients are assigned a 1 while patients who experience an event are assigned
1.
k
The number of times the cross-validation is.
cut.off
The value of the separator around which the patients are grouped according to their predicted survival times.
file
The path of the file to which the log file of this session is saved.
q
One of the two parameters on the prior distribution used on the weights (regression coefficients) in the model.
s
The second of the two parameters on the prior distribution used on the weights (regression coefficients) in the model.
a
The shape parameter for the gamma distribution used as a prior on the baseline hazards.
b
The scale parameter for the gamma distribution used as a prior on the baseline hazards.
groups
The number of partitions along the time axis for which a different baseline hazard is to be assigned. This number should be the same as the number of initial values passed for
the baseline hazards in the beginning of the weights_baselineH argument
geneweights
A vector with the initial values of the weights(regression coefficients) for the co-variates. The default is NULL, in which case a vector of zeros the same length as
ncol(geData)
is created as the initial starting value.
BLHs
A vector with the initial values for the baseline hazards. Should be of length groups. The default is NULL, in which case a vector of length groups
with values
corresponding to the maximum of the gamma distributions with the given parameters is created.
method
The preferred optimization method. It can be one of the following:
"Nelder-Mead":
for the Nelder-Mead simplex algorithm.
"L-BFGS-B":
for the L-BFGS-B quasi-Newtonian method.
"BFGS":
for the BFGS quasi-Newtonian method.
"CG":
for the Conjugate Gradient decent method
"SANN":
for the simulated annealing algorithm.
noprior
An integer indicating the number of iterations to be done without assuming a prior on the regression coefficients.
extras
The extra arguments to passed to the optimization function optim. For further details on them, see the documentation for the optim function.