Learn R Programming

PoolBal (version 0.1-0)

chiPr: Chi-squared marginal rejection level

Description

Computes the marginal rejection level for the chi-squared pooled p-value.

Usage

chiPr(kappa, M, alpha = 0.05)

Value

A numeric between 0 and 1.

Arguments

kappa

numeric between 0 and infinity

M

integer sample size greater than 0

alpha

numeric between 0 and 1

Author

Chris Salahub

Details

The marginal rejection level is the maximum p-value in a single test which results in rejection when all other tests produce p-values of one. For the chi-squared pooled p-value, this is an upper tail probability of the chi-squared distribution. This function computes the upper tail probability for a given sample size M, degrees of freedom kappa, and rejection level alpha.

Examples

Run this code
chiPr(2, 10, 0.05)
chiPr(2, 20, 0.05)

Run the code above in your browser using DataLab