fixef.joint {gmvjoint} | R Documentation |
Extract fixed effects from a joint
object.
Description
Extract fixed effects from a joint
object.
Usage
## S3 method for class 'joint'
fixef(object, what = c("long", "surv"), ...)
Arguments
object |
a joint model fit by the |
what |
character string. Should the |
... |
additional arguments (none used). |
Value
A vector containing requested fixed effects.
Author(s)
James Murray (j.murray7@ncl.ac.uk).
See Also
Examples
# Univariate fit on PBC data -------------------------------------------
data(PBC)
# Subset data and remove NAs
PBC <- subset(PBC, select = c('id', 'survtime', 'status', 'drug', 'time',
'albumin'))
PBC <- na.omit(PBC)
# Specify simple univariate fit
long.formulas <- list(
albumin ~ time + (1 + time|id)
)
surv.formula <- Surv(survtime, status) ~ drug
fit <- joint(long.formulas, surv.formula, PBC, family = list('gaussian'))
fixef(fit, 'long')
fixef(fit, 'surv')
[Package gmvjoint version 0.4.0 Index]