Register or replace a post-hoc handler identified by name.
Arguments
- name
String identifier, e.g., "fdr:bh"
- fun
Function(arrays, opts) -> list of arrays (delta or full arrays)
- requires
Character vector of required input assays, e.g., c("p")
- provides
Character vector of output assay names, e.g., c("q")
- overwrite
Logical; if FALSE and a handler with
nameexists, error- case_deletion
Optional declaration of whether and how the post-hoc conclusion can be recomputed for selected case deletions.
Details
The handler fun is called as fun(arrays, opts) where arrays is a
named list of assays shaped sample x subject x contrast. It should return
either (a) a named list of new/updated assays to merge (e.g., list(q = ...)),
or (b) the full arrays list with modifications. Implementations must
preserve the input array dimensions.
See also
posthoc-methods for the built-in methods and their output assays.