survMC {SurviMChd} | R Documentation |
Survival analysis using Cox Proportional Hazards with MCMC.
Description
Performs survival analysis using Cox Proportional Hazards with MCMC.
Usage
survMC(m, n, Time, Event, chains, adapt, iter, data)
Arguments
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. |
Details
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
Value
Data set containing Posterior HR estimates, SD and quantiles.
Author(s)
Atanu Bhattacharjee and Akash Pawar
References
Bhattacharjee, A. (2020). Bayesian Approaches in Oncology Using R and OpenBUGS. CRC Press.
See Also
survintMC
Examples
##
data(mcsurv)
survMC(m=4,n=8,Time="OS",Event="Death",chains=2,adapt=100,iter=1000,data=mcsurv)
##