Usage
STpredictor_BLH(geDataS, survDataS, cut.off, file = paste(getwd(), "STpredictor_results", sep = "/"), geDataT, survDataT, groups = NULL, a = 2, b = 2, q = 1, s = 1, BLHs =
NULL, geneweights = NULL, method = "BFGS", noprior = 1, extras = list())
Arguments
geDataS
The co-variate data of the validation set passed on by the user. It is a matrix with the co-variates in the columns and the subjects in the rows. Each cell
corresponds to that rowth subject's columnth co-variate's value.
survDataS
The survival data of the validation set passed on by the user. 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.
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.
geDataT
The co-variate data of the kth training set passed on by the user.
survDataT
The survival data of the kth training set passed on by the user.
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.
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.
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.
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.
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.
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.