Creates the model matrix of fixed and random effects corresponding a tramME
model from a data.frame of response and covariate values.
# S3 method for tramME
model.matrix(
object,
data = model.frame(object),
type = c("fixef", "ranef"),
with_baseline = TRUE,
...
)A tramME object.
A data.frame containing the variable values.
Either "fixef" or "ranef".
Logical; indicating whether the returned fixed effects model
matrix should contain the columns corresponding to the baseline transfromation.
(ignored when type = "ranef")
Additional arguments.