fixef.joint | R Documentation |
joint
object.Extract fixed effects from a joint
object.
## S3 method for class 'joint'
fixef(object, what = c("long", "surv"), ...)
object |
a joint model fit by the |
what |
character string. Should the |
... |
additional arguments (none used). |
A vector containing requested fixed effects.
James Murray (j.murray7@ncl.ac.uk).
ranef.joint
# 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')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.