fixef {FastJM} | R Documentation |
Estimated coefficients estimates for joint models
Description
Extracts the fixed effects for a fitted joint model.
Usage
fixef(object, process = c("Longitudinal", "Event"), ...)
Arguments
object |
an object inheriting from class |
process |
for which sub-model to extract the estimated coefficients. |
... |
further arguments passed to or from other methods. |
Value
A numeric vector or a list of the estimated parameters for the fitted model.
Author(s)
Shanpeng Li lishanpeng0913@ucla.edu
Examples
# 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)
# fixed effects for the longitudinal process
fixef(fit, process = "Longitudinal")
# fixed effects for the event process
fixef(fit, process = "Event")
[Package FastJM version 1.4.2 Index]