Add a post-hoc operation to a plan
Usage
posthoc(x, method, options = list())Arguments
- x
A plan or object coercible via
as_plan()- method
Post-hoc method name (e.g., "fdr:bh", "fdr:by")
- options
Optional list of method-specific options
See also
posthoc-methods for the built-in methods and the assays each adds.
Examples
df <- data.frame(
sample = rep(c("ROI_1","ROI_2"), each = 2),
subject = rep(c("s1","s2"), times = 2),
contrast = "c1",
beta = c(0.5,0.6,0.7,0.8),
var = c(0.04,0.05,0.06,0.07)
)
tmp <- tempfile(fileext = ".csv"); utils::write.csv(df, tmp, row.names = FALSE)
plan <- gds(tmp) |> reduce(method = "fixed") |> posthoc("fdr:bh")
# g <- compute(plan) # returns q-values