survMC: Survival analysis using Cox Proportional Hazards with MCMC.

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/survMC.R

Description

Performs survival analysis using Cox Proportional Hazards with MCMC.

Usage

1
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

1
2
3
4
5
6
7
## Not run: 
##
data(mcsurv)
survMC(m=4,n=8,Time="OS",Event="Death",chains=2,adapt=100,iter=1000,data=mcsurv)
##

## End(Not run)

SurviMChd documentation built on May 23, 2021, 5:07 p.m.

Related to survMC in SurviMChd...