ranef | R Documentation |
Extracts the posterior mean of the random effects for a fitted joint model.
ranef(object, ...)
object |
an object inheriting from class |
... |
further arguments passed to or from other methods. |
a matrix of random effects estimates.
Shanpeng Li lishanpeng0913@ucla.edu
jmcs
# a joint model fit
fit <- jmcs(ydata = ydata, cdata = cdata,
long.formula = response ~ time + gender + x1 + race,
surv.formula = Surv(surv, failure_type) ~ x1 + gender + x2 + race,
random = ~ time| ID)
# extract random effects estimates
head(ranef(fit))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.