Description Usage Arguments Value Author(s) Examples
MCMC sampler to fit a RMW AFT regression model
1 2 3 | RMWreg_MCMC(N, Thin, Burn, Time, Event, DesignMat, Mixing = "None",
BaseModel = "Weibull", PriorCV = "Pareto", PriorMeanCV = 1.5,
Hyp1Gam = 1, Hyp2Gam = 1, ...)
|
N |
Total number of iterations for the MCMC sampler. Use |
Thin |
Thining period for the MCMC sampler. Use |
Burn |
Burn-in period for the MCMC sampler. Use |
Time |
Vector of length |
Event |
Vector of length |
Mixing |
Mixing distribution assigned to the (frailty) random effects. Possible values are
|
BaseModel |
If |
PriorCV |
Type of prior assigned to the coefficient of variation of the survival times.
Possible values are |
PriorMeanCV |
Ellicited prior mean of the coefficient of variation ( |
Hyp1Gam |
Shape hyper-parameter for the Gamma( |
Hyp2Gam |
Rate hyper-parameter for the Gamma( |
... |
Optional parameters.
.
|
A list
containing MCMC draws for all parameters.
Catalina A. Vallejos cvallejos@turing.ac.uk
1 2 3 4 5 6 7 8 9 10 11 12 | library(KMsurv)
data(alloauto)
n=dim(alloauto)[1]; k=2
Intercept=rep(1,times=n); x1=alloauto$type-1
DesignMat=cbind(Intercept,x1); rm(Intercept)
Time=alloauto$time; Event=alloauto$delta
Chain <- RMWreg_MCMC(N = 100, Thin = 2, Burn = 50,
Time, Event, DesignMat,
Mixing = "None", BaseModel = "Weibull",
PriorCV = "Pareto", PriorMeanCV = 1.5,
Hyp1Gam = 1, Hyp2Gam = 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.