Fit planned contrasts with radEmu::emuFit(). A centralized add_model()
defines the fixed design and taxonomic analysis units. The default robust
score test is recommended by radEmu; Wald testing is available explicitly.
Arguments
- rec
An unprepared Recipe object.
- test
Native test to report:
"score"(default) or"wald".- cluster
Optional single metadata column identifying dependent observations.
NULLuses native independent-observation inference.- max_significance
Adjusted P value cutoff.
- p_adj_method
Multiple-testing adjustment passed to
p.adjust().- constraint_param
Native pseudo-Huber smoothing parameter, default 0.1.
- seed
Integer seed used for native fitting. Restores the caller's RNG.
- rarefy
Whether to rarefy before fitting; default
FALSE.- id
Unique step identifier.
- engine_args
Named list with an optional
fitlist of native arguments, for exampletolerance,maxit,maxit_null,alphaandremove_zero_comparison_pvals. Solver controls can be passed directly infit. Data, design, clustering, centring functions, fitted-model reuse, tested coordinates, test selection and result shape are managed by dar;controlandreturn_both_score_pvalscannot be overridden.
Details
Effects are natural-log fold differences relative to the native pseudo-Huber centre across analysis taxa. They are not unqualified absolute-abundance changes or log2 fold changes. Each planned contrast is reparameterized and fitted with its own native centring constraint. This retains the native hypothesis rather than treating the nonlinear centre as a linear transformation of previously centred coefficients.
Supply cluster to identify a metadata column containing cluster labels.
Labels are aligned with the common model cohort. Clustered inference uses
radEmu's GEE framework, not a mixed model. Random-effect formulas such as
(1 | subject) are incompatible and are never silently translated. For
repeated observations, use a fixed formula and explicitly set
cluster = "subject". Missing cluster IDs are not dropped privately.
dar adjusts the selected native P values across returned taxa separately
for each planned contrast. It does not adjust across all contrasts jointly.
Missing native statistics remain missing, including native zero-comparison
exclusions. Native convergence warnings are retained; diagnostics and
effective settings are available through get_execution().
The complete taxonomic analysis matrix is used in every fit. Counts are not split by taxon or restricted to the two groups named in a contrast. Score tests can be expensive because each taxon requires a restricted fit. Native numerical validation and errors are left to radEmu.
See also
Other Diff taxa steps:
step_aldex2(),
step_aldex3(),
step_ancom(),
step_corncob(),
step_deseq(),
step_lefse(),
step_linda(),
step_maaslin(),
step_wilcox()
