Skip to contents

Re-run the random-effects meta-analysis (DerSimonian-Laird, via metafor::rma) on a chosen subset of the per-trait standardised tables produced by sldscPostprocessingPipeline – no regression is re-run, only the already-standardised per-trait estimates are re-meta'd. Powers a "meta on a subset of traits" workflow: pick traits, pick target annotation categories, and get the per-category tau* / enrichment / enrichstat meta results back.

Usage

sldscSubsetMeta(postprocessResult, subsetTraits, targetCategories = NULL)

Arguments

postprocessResult

The list returned by sldscPostprocessingPipeline. Must carry a $per_trait element; $params$target_categories is used when targetCategories is NULL.

subsetTraits

Character vector of trait ids to meta over; every id must be present in postprocessResult$per_trait.

targetCategories

Optional character vector of target annotation names. Defaults to postprocessResult$params$target_categories.

Value

A list with tau_star_single, tau_star_joint, enrichment, and enrichstat; each is a per-category named list of metaSldscRandom results.