Learn R Programming

PoolBal (version 0.1-0)

chiPc: Chi-squared central rejection level

Description

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

Usage

chiPc(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 central rejection level is the maximum p-value shared among all tests which still results in rejection of the null using a pooled p-value. 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
chiPc(2, 10, 0.05)
chiPc(2, 20, 0.05) # increases in sample size

Run the code above in your browser using DataLab