Description Usage Arguments Details Value
View source: R/mbecs_analyses.R
The function offers a selection of methods/algorithms to estimate the proportion of variance that can be attributed to covariates of interest. This shows, how much variation is explained by the treatment effect, which proportion is introduced by processing in batches and the leftover variance, i.e., residuals that are not currently explained. Covariates of interest (CoI) are selected by the user and the function will incorporate them into the model.
1 | mbecModelVarianceLMM(model.form, model.vars, tmp.cnts, tmp.meta, type)
|
model.form |
Formula for linear mixed model, function will create simple additive linear mixed model if this argument is not supplied. |
model.vars |
Covariates to use for model building if argument 'model.form' is not given. |
tmp.cnts |
Abundance matrix in 'sample x feature' orientation. |
tmp.meta |
Covariate table that contains at least the used variables. |
type |
String the denotes data source, i.e., one of "otu","clr" or "tss" for the transformed counts or the label of the batch corrected count-matrix. |
Linear Mixed Model (lmm): Only the first covariate is considered a mixed effect. A model is fitted to each OTU respectively and the proportion of variance extracted for each covariate. (OTU_x ~ covariate_2.. + covariate_n + (1|covariate_1)
Data.frame that contains proportions of variance for given covariates in a linear mixed modelling approach.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.