powered by
Performs survival analysis using Cox Proportional Hazards with MCMC with an option to input select multiple variables.
survMCmulti( var1 = NULL, var2 = NULL, var3 = NULL, var4 = NULL, var5 = NULL, Time, Event, chains, adapt, iter, data )
Data set containing Posterior HR estimates, SD, quantiles and meandeviance.
Variable name (first one)
Variable name (second one)
Variable name (third one)
Variable name (fourth one)
Variable name (fifth one)
Variable/Column name containing the information on duration of survival
Variable/Column name containing the information of survival event
Number of chains to perform
Number of iterations to perform
High dimensional data having survival duration and event.
Atanu Bhattacharjee and Akash Pawar
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'
Bhattacharjee, A. (2020). Bayesian Approaches in Oncology Using R and OpenBUGS. CRC Press.
survintMC
# \donttest{ ## data(mcsurv) survMCmulti(var1="x1",var2=NULL,var3="x3",var4="x2", var5="x4",Time="OS",Event="Death",chains=2,adapt=100,iter=1000,data=mcsurv) ## # }
Run the code above in your browser using DataLab