Description Usage Arguments Details Value Author(s) See Also Examples
Extracts estimated coefficients and confidence intervals from fitted joint models.
1 2 3 4 5 6 7 8 |
object |
an object inheriting from class |
process |
for which submodel (i.e., linear mixed model or survival model) to extract the estimated coefficients. |
parm |
for which submodel (i.e., linear mixed model or survival model) to extract credible intervals. |
... |
additional arguments; currently none is used. |
When process = "Event"
both methods return the same output. However, for process = "Longitudinal"
,
the coef()
method returns the subject-specific coefficients, whereas fixef()
only the fixed effects.
A numeric vector or a matrix of the estimated parameters or confidence intervals for the fitted model.
Dimitris Rizopoulos d.rizopoulos@erasmusmc.nl
ranef.JMbayes
, jointModelBayes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | ## Not run:
# linear mixed model fit
fitLME <- lme(sqrt(CD4) ~ obstime * drug - drug,
random = ~ 1 | patient, data = aids)
# cox model fit
fitCOX <- coxph(Surv(Time, death) ~ drug, data = aids.id, x = TRUE)
# joint model fit
fitJOINT <- jointModelBayes(fitLME, fitCOX,
timeVar = "obstime")
# fixed effects for the longitudinal process
fixef(fitJOINT)
# fixed effects + random effects estimates for the longitudinal
# process
coef(fitJOINT)
# fixed effects for the event process
fixef(fitJOINT, process = "Event")
coef(fitJOINT, process = "Event")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.