fishers_combined: Fisher's combine method on mvmapit return

View source: R/combine_pvalues.R

fishers_combinedR Documentation

Fisher's combine method on mvmapit return

Description

This function takes in the p-values tibble that mvmapit returned. It then computes the combined p-values grouped by variant id.

Usage

fishers_combined(pvalues, group_col = "id", p_col = "p")

Arguments

pvalues

Tibble with p-values from mvmapit function call.

group_col

String that denotes column by which to group and combine p-values.

p_col

String that denotes p-value column.

Value

A Tibble with the combined p-values.

Examples

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"
)
fisher <- fishers_combined(mapit$pvalues)

mvMAPIT documentation built on Sept. 26, 2023, 9:07 a.m.