
Generates the design matrix for a given formula
and data
object
Source: R/make_design_matrix.R
make_design_matrix.Rd
Generates the design matrix for a given formula
and data
object
Arguments
- Y
Optionally, a
phyloseq
orTreeSummarizedExperiment
object containing an otu table and sample data.- formula
a one-sided formula specifying the form of the mean model to be fit
- data
an n x p data frame containing variables given in
formula
(required unlessY
is included as aphyloseq
orTreeSummarizedExperiment
object)- assay_name
Optionally, a string containing the desired assay name within a
TreeSummarizedExperiment
object. This is only required ifdata
is aTreeSummarizedExperiment
object, otherwise this argument does nothing and can be ignored.