Description Usage Arguments Details Value Author(s) See Also Examples
Returns Cox-Snell residuals.
1 |
bayes.fit |
a fit of the joint model using |
posterior.mean |
returns posterior means if TRUE, and posterior medians if FALSE. |
In MCMC simulations, log(survival probabilities) are monitored to obtain posterior means/medians of the Cox-Snell residuals.
Returns posterior means/medians of the Cox-Snell residuals.
Shahedul Khan <khan@math.usask.ca>
jmreg.aft
, jm.resid.plot
, jm.summary
,
1 2 3 4 5 6 7 8 9 10 11 12 13 | library(JM)
data(aids.id)
data(aids)
surv.fit<-coxph(Surv(Time,death)~drug+gender+prevOI+AZT,
data=aids.id,x=TRUE)
lme.fit<-lme(CD4~obstime+obstime:drug+gender+prevOI+AZT,
random=~obstime|patient,data=aids)
# exponentiated weibull time-to-event process
jmfit.ew<-jmreg.aft(surv.fit=surv.fit,lme.fit=lme.fit,
surv.model="eweibull",rand.model="simple",timevar="obstime",
n.chain=2,n.adapt = 5000, n.burn = 15000,
n.iter = 150000, n.thin = 5)
jm.resid(jmfit.ew)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.