Description Usage Arguments Value Note Author(s) See Also Examples
This function is an “incomplete” version of STpredictor.BLH used within the cross validation function STpredictor_xvBLH
to predicted the survival times of the
subset of patients in the kth partitioning. It is not meant for use outside that function.
1 | weights_xvBLH(geDataS, survDataS, geDataT, survDataT, q = 1, s = 1, a = 2, b = 2, groups = 3, par, method = "BFGS", noprior = 1, extras = list())
|
geDataS |
The co-variate data of the kth validation set passed on by |
survDataS |
The survival data of the kth validation set passed on by |
geDataT |
The co-variate data of the kth training set passed on by |
survDataT |
The survival data of the kth training set passed on by |
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. |
par |
A single vector with the initial values of the baseline hazards followed by the weights(regression coefficients) for the co-variates. |
method |
The preferred optimization method. It can be one of the following:
|
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 |
prediction |
A data frame with the columns True_STs (the observed survival times), Predicted_STs (the predicted survival times), censored(the censoring status of the patient,absolute_error(the sign-less difference between the predicted and observed survival times), PatientOrderValidation (The patient's number) |
est.geneweight |
The estimated regression coefficients from the kth training set (geDataT,survDataT) |
est.baselineH |
The estimated baseline hazards from the kth training set (geDataT, survDataT) |
This function is not meant to be used outside its wrapper.
Douaa Mugahid
1 2 3 4 5 | data(Bergamaschi)
data(survData)
weights_xvBLH(geDataS=Bergamaschi[21:31, 1:2], survDataS=survData[21:31, 9:10],geDataT=Bergamaschi[1:20, 1:2],
survDataT=survData[1:20, 9:10], q = 1, s = 1, a = 2, b = 2, groups = 3, par = c(0.1, 0.1, 0.1,rep(0,2)),
method = "CG", noprior = 1, extras = list(reltol=1))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.