chiKappa: 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
)
Value
A numeric within interval.
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?
Author
Chris Salahub
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.