You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

关于RobustRankAggreg R包AggregateRanks函数返回Scores(p值)是否已完成多重检验校正的技术咨询

About AggregateRanks() Scores (p-values) in RobustRankAggreg Package

Great question—this is a common point of confusion since the official docs don’t explicitly spell this out. Let me clarify:

  • The p-values returned in the Scores column by AggregateRanks() are not adjusted for multiple testing. These are raw p-values calculated directly from the rank aggregation logic, with no built-in correction for the number of tests you’re evaluating.
  • You will need to perform multiple testing correction on these scores yourself using standard R tools.

Example Workflow

Here’s how to add adjusted p-values to your results after running AggregateRanks():

# Load the package
library(RobustRankAggreg)

# Sample rank data (replace with your own)
rank_datasets <- list(
  study1 = c("geneX", "geneY", "geneZ"),
  study2 = c("geneY", "geneX", "geneW"),
  study3 = c("geneZ", "geneX", "geneY")
)

# Run rank aggregation
aggregated_results <- AggregateRanks(rank_datasets, N = 4)

# Add FDR-adjusted p-values (choose method based on your needs)
aggregated_results$adjusted_p <- p.adjust(aggregated_results$Scores, method = "fdr")

# Inspect the updated results
print(aggregated_results)

Context for This Behavior

Rank aggregation methods like the one implemented in AggregateRanks() prioritize combining rank data first, then generating raw p-values based on the aggregated distribution. Leaving correction to the user gives you flexibility to pick the method that aligns with your study design—whether that’s FDR, Bonferroni, Holm, or another approach.

内容的提问来源于stack exchange,提问作者durian

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.30 13:32:41