Description Usage Arguments Details Value Examples
Applies Limma's 'nonEstimable()' to a given model and returns NULL if everything works out, or a warning and a vector of problematic covariates in case there is a problem.
1 | mbecTestModel(input.obj, model.vars = NULL, model.form = NULL)
|
input.obj |
MbecData, phyloseq or list (counts, meta-data). |
model.vars |
Names of covariates to construct formula from. |
model.form |
Formula for a linear model to test. |
The usefull part is that you can just put in all the covariates of interest as model.vars and the function will build a simple linear model and its model.matrix for testing. You can also provide more complex linear models and the function will do the rest.
Either NULL if everything is fine or a vector of strings that denote covariates and their respective problematic levels.
1 2 3 | # This will return NULL because it is estimable.
eval.obj <- mbecTestModel(input.obj=dummy.mbec,
model.vars=c("group","batch"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.