Learn R Programming

CLME (version 2.0-4)

model.matrix.clme: Extract the model design matrix.

Description

Extracts the fixed-effects design matrix from objects of class clme.

Extract the model design matrix.

Usage

"model.matrix"(object, type = "fixef", ...)
"model.matrix"(object, ...)

Arguments

object
an object of class clme.
type
specify whether to return the fixed-effects or random-effects matrix.
...
space for additional arguments

Value

Returns a matrix.

See Also

CLME-package clme

model.matrix.clme

Examples

Run this code
## Not run: 
# data( rat.blood )
# cons <- list(order = "simple", decreasing = FALSE, node = 1 )
# clme.out <- clme(mcv ~ time + temp + sex + (1|id), data = rat.blood ,
#                  constraints = cons, seed = 42, nsim = 0)
# 
# model.matrix( clme.out )
# ## End(Not run)

Run the code above in your browser using DataLab