combine_ps: Combine p-values

Description Usage Arguments Details Value Author(s)

View source: R/combine_ps.r

Description

Combine p-values using chi-squared or z-score combination method.

Usage

1
combine_ps(burden_pval, position_pval, method = "chisq")

Arguments

burden_pval

P-value from a burden test such as Fisher's exact-test

position_pval

P-value from a position test such as Chi-squared two-sample test

method

Method to combine p-values. "chisq" for Fisher's method. "z-score" for Stouffer's method.

Details

This is a method to combine p-values using either Fisher's method or Stouffer's method.

Usage is simple however you must first calculate burden and position p-values. Burden p-values can be calculated using ClusterBurden::burden_test() or any other RVAT that does not use positional information Position p-values can be calculated using ClusterBurden::BIN_test() or any other position test that is not sensitive to burden

If any p-values are zero then the function returns zero.

The functions have been adapted from the R package metap but re-written here to reduce dependencies.

Value

Returns a single unnamed p-value of type num

Author(s)

Adam Waring - adam.waring@msdtc.ox.ac.uk


adamwaring/ClusterBurden documentation built on July 29, 2020, 9:50 p.m.