Extract the fixed effects, randome effects, variance of the
fixed effects, or variance of the random effects from a coxme model.
Usage
## S3 method for class 'coxme':
fixef(object, \dots)
## S3 method for class 'coxme':
ranef(object, \dots)
## S3 method for class 'coxme':
vcov(object, \dots)
## S3 method for class 'coxme':
VarCorr(x, \dots)
Arguments
object
an object inheriting from class coxme
representing the result of a mixed effects Cox model.
x
an object inheriting from class coxme
representing the result of a mixed effects Cox model.
...
some methods for this generic require additional
arguments. None are used in this method.
Value
the fixed effects are a vector and the variance of the fixed
effects is a matrix. The random effects will be a list with one
element for each random effects terms, as will be their variance.
rat1 <- coxme(Surv(time, status) ~ rx + (1|litter), rats)
fixed.effects(rat1)
vcov(rat1)
random.effects(rat1)[[1]] #one value for each of the 50 littersVarCorr(rat1)