Title: | High Dimensional Survival Data Analysis with Markov Chain Monte Carlo |
---|---|
Description: | High dimensional survival data analysis with Markov Chain Monte Carlo(MCMC). Currently supports frailty data analysis. Allows for Weibull and Exponential distribution. Includes function for interval censored data. |
Authors: | Atanu Bhattacharjee [aut, cre, ctb], Akash Pawar [aut, ctb] |
Maintainer: | Atanu Bhattacharjee <[email protected]> |
License: | GPL-3 |
Version: | 0.1.2 |
Built: | 2024-11-24 06:28:56 UTC |
Source: | CRAN |
Discrete mixture model with MCMC
fraidm(m, n, Ins, Del, Time, T.min, chn, iter, data)
fraidm(m, n, Ins, Del, Time, T.min, chn, iter, data)
m |
Starting column number form where study variables to be selected. |
n |
Ending column number till where study variables will get selected. |
Ins |
Variable name of Institute information. |
Del |
Variable name containing the event information. |
Time |
Variable name containing the time information. |
T.min |
Variable name containing the time of event information. |
chn |
Number of MCMC chains |
iter |
Define number of iterations as number. |
data |
High dimensional data, event information given as (delta=0 if alive, delta=1 if died). If patient is censored then t.min=duration of survival. If patient is died then t.min=0. If patient is died then t=duration of survival. If patient is alive then t=NA. |
By given m and n, a total of 3 variables can be selected.
fraidmout - b[1] is the posterior estimate of the regression coefficient for first covariate.
b[2] is the posterior estimate of the regression coefficient for second covariate.
b[3] is the posterior estimate of the regression coefficient for third covariate.
omega[1] and omega[2] are frailty effects.
c[1] and c[2] are regression intercept and coefficients of covariates over mean effect.
Bhattacharjee, A. (2020). Bayesian Approaches in Oncology Using R and OpenBUGS. CRC Press.
Congdon, P. (2014). Applied bayesian modelling (Vol. 595). John Wiley & Sons.
fraidpm frairand
## data(frailty) fraidm(m=5,n=7,Ins="institute",Del="del",Time="timevar",T.min="time.min",chn=2,iter=6,data=frailty) ##
## data(frailty) fraidm(m=5,n=7,Ins="institute",Del="del",Time="timevar",T.min="time.min",chn=2,iter=6,data=frailty) ##
Frailty analysis on high dimensional data by Drichlet process mixture.
fraidpm(m, n, Ins, Del, Time, T.min, chn, iter, adapt, data)
fraidpm(m, n, Ins, Del, Time, T.min, chn, iter, adapt, data)
m |
Starting column number form where study variables to be selected. |
n |
Ending column number till where study variables will get selected. |
Ins |
Variable name of Institute information. |
Del |
Variable name containing the event information. |
Time |
Variable name containing the time information. |
T.min |
Variable name containing the time of event information. |
chn |
Number of MCMC chains. |
iter |
Define number of iterations as number. |
adapt |
Define number of adaptations as number. |
data |
High dimensional data, event information given as (delta=0 if alive, delta=1 if died). If patient is censored then t.min=duration of survival. If patient is died then t.min=0. If patient is died then t=duration of survival. If patient is alive then t=NA. |
By given m and n, a total of 3 variables can be selected.
fraidpmout omeg[i] are frailty effects.
Atanu Bhattacharjee and Akash Pawar
Bhattacharjee, A. (2020). Bayesian Approaches in Oncology Using R and OpenBUGS. CRC Press.
Congdon, P. (2014). Applied bayesian modelling (Vol. 595). John Wiley & Sons.
fraidm frairand
## data(frailty) fraidpm(m=5,n=7,Ins="institute",Del="del",Time="timevar",T.min="time.min",chn=2,iter=6, adapt=100,data=frailty) ##
## data(frailty) fraidpm(m=5,n=7,Ins="institute",Del="del",Time="timevar",T.min="time.min",chn=2,iter=6, adapt=100,data=frailty) ##
Data set listing institutional wise survival outcomes
Survival observations data for frailty model functions of SurviMChd
data(frailty)
data(frailty)
A tibble
with 7 columns and 272 rows which are :
Institute of the sample observations
Numberic values 0 or 1 containing death/event information
Survival duration
Minimum survival
Covariate_1, gender variable indicating either a female or not
Covariate_2
Covariate_3
data(frailty)
data(frailty)
Random effects frailty model
frairand(m, n, Ins, Del, Time, T.min, chn, iter, adapt, data)
frairand(m, n, Ins, Del, Time, T.min, chn, iter, adapt, data)
m |
Starting column number form where study variables to be selected. |
n |
Ending column number till where study variables will get selected. |
Ins |
Variable name of Institute information. |
Del |
Variable name containing the event information. |
Time |
Variable name containing the time information. |
T.min |
Variable name containing the time of event information. |
chn |
Numner of MCMC chains. |
iter |
Define number of iterations as number. |
adapt |
Define number of adaptations as number. |
data |
High dimensional data having survival duration, event information and column of time for death cases. |
By given m and n, a total of 3 variables can be selected.
frairandout omeg[i] are frailty effects.
Atanu Bhattacharjee and Akash Pawar
Tawiah, R., Yau, K. K., McLachlan, G. J., Chambers, S. K., & Ng, S. K. (2019). Multilevel model with random effects for clustered survival data with multiple failure outcomes. Statistics in medicine, 38(6), 1036-1055.
fraidm fraidpm
## data(frailty) frairand(m=5,n=7,Ins="institute",Del="del",Time="timevar",T.min="time.min",chn=2,iter=6, adapt=100,data=frailty) ##
## data(frailty) frairand(m=5,n=7,Ins="institute",Del="del",Time="timevar",T.min="time.min",chn=2,iter=6, adapt=100,data=frailty) ##
Head and neck cancer data tibble
on head and neck cancer patients for survexpMC and survweibMC functions.
data(headnneck)
data(headnneck)
A tibble
with 13 columns which are :
Patients referred to as Subjects
Overall Survival
Death status for the particular subjects
Arm of group assigned to subjects
Demographic information of Subjects, i.e. Gender
Stratum from where the sample is drawn
Categorical observation
Continuous observations
Continuous observations
Continuous observations
Continuous observations
Continuous observations
Continuous observations
data(headnneck)
data(headnneck)
High dimensional head and neck cancer gene expression data
data(hnscc)
data(hnscc)
A dataframe with 565 rows and 104 variables
ID of subjects
Initial censoring time
Survival event
Duration of overall survival
Duration of progression free survival
Progression event
High dimensional covariates
data(hnscc)
data(hnscc)
Observations made tibble
on the head and neck cancer patients. Data for survMC function from SurviMChd package.
data(mcsurv)
data(mcsurv)
A tibble
with 15 columns which are :
Overall Survival
Death status
Time at which event occurred
Variable measured on continuous scale
Variable measured on discrete scale
Variable measured on continuous scale
Variable measured on discrete scale
Variable measured on continuous scale
data(mcsurv)
data(mcsurv)
Survival analysis with exponential distribution by MCMC
survexpMC(m1, n1, m2, n2, chains, iter, data)
survexpMC(m1, n1, m2, n2, chains, iter, data)
m1 |
Starting column number from where variables of high dimensional data will be selected. |
n1 |
Ending column number till where variables of high dimensional data will get selected. |
m2 |
Starting column number from where demographic observations starts |
n2 |
Ending column number of the demographic observations |
chains |
Number of MCMC chains |
iter |
Number of MCMC iterations |
data |
High dimensional data having survival duration as (OS), event information as Death (1 if died, or 0 if alive). |
survexpMCout A data set listing estimated posterior means and deviances
Atanu Bhattacharjee and Akash Pawar
Kumar, M., Sonker, P. K., Saroj, A., Jain, A., Bhattacharjee, A., & Saroj, R. K. (2020). Parametric survival analysis using R: Illustration with lung cancer data. Cancer Reports, 3(4), e1210.
survweibMC
## data(headnneck) survexpMC(m1=8,n1=12,m2=4,n2=7,chains=2,iter=10,data=headnneck) ##
## data(headnneck) survexpMC(m1=8,n1=12,m2=4,n2=7,chains=2,iter=10,data=headnneck) ##
Performs survival analysis using Cox Proportional Hazards with MCMC.
survMC(m, n, Time, Event, chains, adapt, iter, data)
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) ##
## data(mcsurv) survMC(m=4,n=8,Time="OS",Event="Death",chains=2,adapt=100,iter=1000,data=mcsurv) ##
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 )
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) ##
## 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) ##
Survival analysis with weibull distribution by MCMC
survweibMC(m1, n1, m2, n2, chains, iter, data)
survweibMC(m1, n1, m2, n2, chains, iter, data)
m1 |
Starting column number from where variables of high dimensional data will be selected. |
n1 |
Ending column number till where variables of high dimensional data will get selected. |
m2 |
Starting column number from where demographic observations starts |
n2 |
Ending column number of the demographic observations |
chains |
Number of MCMC chains |
iter |
Number of MCMC iterations |
data |
High dimensional data having survival duration as (OS), event information as Death (1 if died, or 0 if alive). |
beta1[1] Posterior estimates of regression coefficients and deviance
Atanu Bhattacharjee and Akash Pawar
Kumar, M., Sonker, P. K., Saroj, A., Jain, A., Bhattacharjee, A., & Saroj, R. K. (2020). Parametric survival analysis using R: Illustration with lung cancer data. Cancer Reports, 3(4), e1210.
Khan, S. A. (2018). Exponentiated Weibull regression for time-to-event data. Lifetime data analysis, 24(2), 328-354.
survexpMC
## data(headnneck) survweibMC(m1=8,n1=12,m2=4,n2=7,chains=2,iter=10,data=headnneck) ##
## data(headnneck) survweibMC(m1=8,n1=12,m2=4,n2=7,chains=2,iter=10,data=headnneck) ##