survMC | R Documentation |
Performs survival analysis using Cox Proportional Hazards with MCMC.
survMC(m, n, Time, Event, chains, adapt, iter, data)
m |
Starting column number from where variables of high dimensional data will get selected. |
n |
Ending column number till where variables of high dimensional data will get selected. |
Time |
Variable/Column name containing the information on duration of survival |
Event |
Variable/Column name containing the information of survival event |
chains |
Number of chains to perform |
adapt |
Number of adaptations to perform |
iter |
Number of iterations to perform |
data |
High dimensional data having survival duration and event. |
The survival columns of the data should be arranged as follows - Death Death status=1 if died otherwise 0. OS Survival duration measured as 'OS' t.len Number of censored times
Data set containing Posterior HR estimates, SD and quantiles.
Atanu Bhattacharjee and Akash Pawar
Bhattacharjee, A. (2020). Bayesian Approaches in Oncology Using R and OpenBUGS. CRC Press.
survintMC
##
data(mcsurv)
survMC(m=4,n=8,Time="OS",Event="Death",chains=2,adapt=100,iter=1000,data=mcsurv)
##
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.