model.matrix.reStruct {nlme} | R Documentation |
The model matrices for each element of formula(object)
,
calculated using data
, are bound together column-wise. When
multiple grouping levels are present (i.e. when length(object) >
1
), the individual model matrices are combined from innermost (at
the leftmost position) to outermost (at the rightmost position).
## S3 method for class 'reStruct' model.matrix(object, data, contrast, ...)
object |
an object inheriting from class |
data |
a data frame in which to evaluate the variables defined in
|
contrast |
an optional named list specifying the contrasts to be used
for representing the |
... |
some methods for this generic require additional arguments. None are used in this method. |
a matrix obtained by binding together, column-wise, the model matrices
for each element of formula(object)
.
José Pinheiro and Douglas Bates bates@stat.wisc.edu
model.matrix
, contrasts
,
reStruct
, formula.reStruct
rs1 <- reStruct(list(Dog = ~day, Side = ~1), data = Pixel) model.matrix(rs1, Pixel)