
Generates the design matrix for a given formula and data object
Source: R/make_design_matrix.R
make_design_matrix.RdGenerates the design matrix for a given formula and data object
Arguments
- Y
Optionally, a
phyloseqorTreeSummarizedExperimentobject 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 unlessYis included as aphyloseqorTreeSummarizedExperimentobject)- assay_name
Optionally, a string containing the desired assay name within a
TreeSummarizedExperimentobject. This is only required ifdatais aTreeSummarizedExperimentobject, otherwise this argument does nothing and can be ignored.