Random-effects meta-analysis over a subset of sLDSC traits
Source:R/sldscWrapper.R
sldscSubsetMeta.RdRe-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.
Arguments
- postprocessResult
The list returned by
sldscPostprocessingPipeline. Must carry a$per_traitelement;$params$target_categoriesis used whentargetCategoriesisNULL.- 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.