1
.onLoad <- function(lib, pkg)
3
if ("package:nlme" %in% search()) {
4
stop(paste("Package lme4 conflicts with package nlme.\n",
5
"To attach lme4 you must restart R without package nlme."))
1
## Class definitions for the package
9
3
setOldClass("data.frame")
10
4
setOldClass("family")
11
5
setOldClass("logLik")
12
6
setOldClass("terms")
14
setClass("lme", representation(call = "call",
21
residuals = "numeric",
25
setClass("GLMM", representation(family = "family",
29
method = "character"),
33
9
representation(call = "call",
40
16
useScale="logical"),
41
17
prototype = list(scale = 1.0, useScale = TRUE))
43
setClass("summary.ssclme",
44
representation(coefficients="matrix",
50
corFixed="corrmatrix",
53
showCorrelation="logical"
56
setClass("summary.lme",
57
representation(call = "call",
19
## mixed effects representation
22
flist = "list", # list of grouping factors
23
perm = "list", # list of permutations of levels (0-based)
24
Parent = "list",# list of Parent arrays for ZZpO
25
D = "list", # list of diagonal factors (upper triangle)
26
bVar = "list", # list of conditional variance factors (upper triangle)
27
L = "list", # list of blocks of L
28
ZZpO = "list", # list of diagonal blocks of Z'Z+Omega
29
Omega = "list", # list of relative precision matrices
31
RXX = "matrix", # Augmented RXX component or its inverse
32
RZX = "matrix", # Augmented RZX component or its inverse
33
XtX = "matrix", # Original X'X matrix
34
ZtZ = "list", # list of blocks of Z'Z
35
ZtX = "matrix", # Original Z'X matrix
36
cnames = "list",# column names of model matrices
37
devComp = "numeric", # Components of deviance
38
deviance = "numeric", # Current deviance (ML and REML)
39
nc = "integer", # number of columns in (augmented)
40
# model matrices and number of observations
41
Gp = "integer", # Pointers to groups of rows in RZX
44
validity = function(object) {
45
.Call("lmer_validate", object, PACKAGE = "Matrix")
48
## Representation of a linear mixed effects model
50
representation(call = "call", terms = "terms",
51
assign = "integer", fitted = "numeric",
52
residuals = "numeric", frame = "data.frame"),
55
## Representation of a generalized linear mixed effects model
57
representation(family = "family", glmmll = "numeric",
58
method = "character", fixed = "numeric"),
61
setClass("summary.lmer",
62
representation(useScale="logical",
63
showCorrelation="logical",
59
re = "summary.ssclme",
60
residuals = "numeric"))
62
setClass("summary.GLMM", representation(family = "family"),
63
contains = "summary.lme")
70
setClass("lmList.confint", contains = "array")
72
setClass("lmer.ranef",
73
representation(varFac = "list", stdErr = "numeric"),
76
setClass("lmer.ranef.confint", contains = "list")
79
representation(varFac = "list", stdErr = "numeric"),