survMCmulti | R Documentation |
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
)
var1 |
Variable name (first one) |
var2 |
Variable name (second one) |
var3 |
Variable name (third one) |
var4 |
Variable name (fourth one) |
var5 |
Variable name (fifth one) |
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 chains 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'
Data set containing Posterior HR estimates, SD, quantiles and meandeviance.
Atanu Bhattacharjee and Akash Pawar
Bhattacharjee, A. (2020). Bayesian Approaches in Oncology Using R and OpenBUGS. CRC Press.
survintMC
##
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)
##
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.