Learn R Programming

Corbi (version 0.6-0)

p_combine: Calculate combined p-value

Description

Combine the statistical significance results from several independent tests by using one of several methods.

Usage

p_combine(p, method = "sumlog", shrink = Inf)

Arguments

p

the numeric vector containing the p-values need to combine.

method

the method use to combine the p-values, can be "sumlog" (Fisher's method), "sumz" (Stouffer<U+2019>s method).

shrink

the number of p-values used in calculation, which are uniform selected from original p-value vector.

Value

This function will return a list with the following components:

p

The combined p-value.

v

The value of statistic.

Use "sumlog" method:

chisq

The value of chi-squared statistic.

df

The degrees of freedom of chi-squared distribution.

Use "sumz" method:

z

The value of sum z statistic.