This function calculates rho and kappa for a given contingencyTable
, and returns a list containing both values. Called by rho
.
rhoCT(
x,
OcSBaserate = NULL,
testSetBaserateInflation = 0,
OcSLength = 10000,
replicates = 800,
ScSKappaThreshold = 0.9,
ScSKappaMin = 0.4,
ScSPrecisionMin = 0.6,
ScSPrecisionMax = 1
)
The observed kappa value, testSet
or contingencyTable
that will be tested with rho
The baserate
of the observed codeSet
(defaults to baserate
of testSet
or contingencyTable
)
The minimum baserate
from the sampling procedure
The length of the observed codeSet
The number of simulated codeSets
to use in the null hypothesis distribution for rho; similar to replicates in a Monte Carlo study
The maximum kappa value used to generate simulated codeSets
in the null hypothesis distribution for rho
The minimum kappa value used to generate simulated codeSets
in the null hypothesis distribution for rho
The minimum precision to be used for generation of simulated codeSets
in the null hypothesis distribution for rho
The maximum precision to be used for generation of simulated codeSets
in the null hypothesis distribution for rho
rho for the given parameters
A list of the format:
The rho of the contingencyTable
The Cohen's Kappa of the contingencyTable