mixed_effect {structToolbox}R Documentation

Mixed Effects model class

Description

Mixed Effects model class. Applies RE model for all features in a DatasetExperiment

Usage

mixed_effect(alpha = 0.05, mtc = "fdr", formula, ss_type = "marginal", ...)

Arguments

alpha

The p-value threshold. Default alpha = 0.05.

mtc

Multiple test correction method passed to p.adjust. Default mtc = 'fdr'.

formula

The formula to use. See aov for details.

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

Value

struct object

Examples

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)

[Package structToolbox version 1.0.1 Index]