coxme
function.lmekin(formula, data, weights, subset, na.action, control,
varlist, vfixed, vinit, method = c("ML", "REML"),
sparse = c(1, 0), x = FALSE, y = TRUE,
random, fixed, variance, ...)
~
operator and the fixed and random effects on the right.formula
.lm
; see there
for details.coxme.control
for details.coxmeFull
.
Alternatively it can be a list of matrices, in which case the
coxmeMlis
lmekin
the fixed and random effects were separate arguments. These arguments
are included for backwards compatability, but are depreciated.
The variance argument is a depreciated alias for vfixed.coxme.control
.lmekin
.coxme
routine; it uses the same code to process input arguments and form the
random effects, comparison of its output with lme
helped
validate those operations. It is possible to specify some models in
this framwork that can not be fit with lme, in particular models with
familial genetic effects, i.e., a kinship matrix, and hence the
name of the routine. Using user-specified variance functions an even
wider range of models is possible. For simple models the specification of the random effects follows the
same form as the lmer
function. For any model which can be fit
by both lmekin
and lmer
, the latter routine would
normally be prefered due to a much wider selection of post-fit tools
for residuals, prediction, plotting, etc.
lmekin.object
, coxme
fit1 <- lme(effort ~ Type, data=ergoStool, random= ~1|Subject,
method="ML")
fit2 <- lmekin(effort ~ Type + (1|Subject), data=ergoStool)
Run the code above in your browser using DataLab