Learn R Programming

sleuth (version 0.29.0)

design_matrix: Extract design matrix

Description

Accessor method for extracting a design matrix from a sleuth object

Usage

design_matrix(obj, which_model = "full")

Arguments

obj

a sleuth object

which_model

a character string of the model

Value

the model.matrix used to fit which_model