Learn R Programming

PoolBal (version 0.1-0)

estimateQ: Compute the centrality quotient

Description

Estimates the centrality quotient for an arbitrary pooled p-value function.

Usage

estimateQ(
  poolFun,
  alpha = 0.05,
  M = 2,
  interval = c(0, 1),
  poolArgs = list(),
  ...
)

Value

The uniroot output.

Arguments

poolFun

function accepting a vector of p-values

alpha

numeric between 0 and 1

M

integer, how many p-values are there?

interval

two numerics giving the bounds of root-searching

poolArgs

(optional) additional named arguments for poolFun

...

additional arguments to uniroot

Author

Chris Salahub

Details

The centrality quotient communicates the tendency for a test to favour evidence shared among all tests over strong evidence in a single test.

This function uses the individual estimation functions for central and marginal rejection levels to compute the centrality quotient for an arbitrary pooled p-value function. The option to specify b for marginal rejection is included in case the pooled p -value has strange behaviour when p-values are equal to 1.

Examples

Run this code
estimateQ(chiPool, alpha = 0.05, M = 10, poolArgs = list(kappa = 10))

Run the code above in your browser using DataLab