chiKappa {PoolBal} | R Documentation |
Chi-squared kappa for a given centrality quotient
Description
Computes the kappa (degrees of freedom) required to obtain a given centrality quotient using the chi-square pooled p-value.
Usage
chiKappa(
cq,
M,
alpha = 0.05,
interval = c(0, 100),
tol = .Machine$double.eps^0.5
)
Arguments
cq |
numeric between 0 and 1 |
M |
integer sample size greater than 0 |
alpha |
numeric between 0 and 1 |
interval |
numeric of length 2, where should roots be sought? |
tol |
numeric, how close do values need to be for equality? |
Details
This function is essentially a wrapper for uniroot which finds where chiCentQuot gives an output equal to the given centrality quotient to provide an approximate kappa giving that quotient.
Value
A numeric within interval.
Author(s)
Chris Salahub
Examples
chiKappa(0.5, 10, 0.05)
chiKappa(0.5, 20, 0.05)
chiKappa(0.5, 100, 0.05, interval = c(0, 10))
[Package PoolBal version 0.1-0 Index]