mixed_effect {structToolbox} | R Documentation |
Mixed Effects model class. Applies RE model for all features in a DatasetExperiment
mixed_effect(alpha = 0.05, mtc = "fdr", formula, ss_type = "marginal", ...)
alpha |
The p-value threshold. Default alpha = 0.05. |
mtc |
Multiple test correction method passed to |
formula |
The formula to use. See |
ss_type |
Type of sum of squares to use. "marginal" = Type III sum of squares, and "sequential" = Type II. Default is "marginal". |
... |
additional slots and values passed to struct_class |
struct object
D = iris_DatasetExperiment() D$sample_meta$id=rownames(D) # dummy id column M = mixed_effect(formula = y~Species+ Error(id/Species)) M = model_apply(M,D)