View source: R/combine_pvalues.R
harmonic_combined | R Documentation |
This function takes in the p-values tibble that mvmapit returned. It then computes the combined p-values grouped by variant id.
harmonic_combined(pvalues, group_col = "id", p_col = "p")
pvalues |
Tibble with p-values from mvmapit function call. Grouping is based on the column named "id" |
group_col |
String that denotes column by which to group and combine p-values. |
p_col |
String that denotes p-value column. |
A Tibble with the combined p-values.
set.seed(837)
p <- 200
n <- 100
d <- 2
X <- matrix(
runif(p * n),
ncol = p
)
Y <- matrix(
runif(d * n),
ncol = d
)
mapit <- mvmapit(
t(X),
t(Y),
test = "normal", cores = 1, logLevel = "INFO"
)
harmonic <- harmonic_combined(mapit$pvalues)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.