Description Usage Arguments Details Value Author(s) See Also Examples
Returns DIC.
1 |
bayes.fit |
a fit of the joint model using |
posterior.mean |
if TRUE posterior means are used to compute Dbar and Dhat; if FALSE, posterior medians are used to compute Dbar and Dhat. |
See the WinBUGS website for definition of DIC (https://www.mrc-bsu.cam.ac.uk/software/bugs/the-bugs-project-dic/).
Returns pD and DIC.
Shahedul Khan <khan@math.usask.ca>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | data(pbc.long)
data(pbc.surv)
agec<-pbc.surv$age-mean(pbc.surv$age)
pbc.surv0<-data.frame(pbc.surv,agec=agec)
# use natural splines
lme.fit<-lme(log(bilirubin)~drug+ns(futime,2),data=pbc.long,
random=~ns(futime,2)|id)
surv.fit<-coxph(Surv(st,status2)~drug*agec,data=pbc.surv0,x=TRUE)
# use rand.model="ns"
jmfit.w<-jmreg.aft(surv.fit=surv.fit,lme.fit=lme.fit,
surv.model="weibull",rand.model="ns",timevar="futime",
n.chain=2,n.adapt = 5000, n.burn = 15000,
n.iter = 150000, n.thin = 5)
jm.DIC(jmfit.w)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.