This function calculates rho and kappa for a given contingencyTable, and returns a list containing both values. Called by rho.
Usage
rhoCT(
x,
OcSBaserate = NULL,
testSetBaserateInflation = 0,
OcSLength = 10000,
replicates = 800,
ScSKappaThreshold = 0.9,
ScSKappaMin = 0.4,
ScSPrecisionMin = 0.6,
ScSPrecisionMax = 1,
method = "standard"
)Arguments
- x
The observed kappa value,
testSetorcontingencyTablethat will be tested with rho- OcSBaserate
The
baserateof the observedcodeSet(defaults tobaserateoftestSetorcontingencyTable)- testSetBaserateInflation
The minimum
baseratefrom the sampling procedure- OcSLength
The length of the observed
codeSet- replicates
The number of simulated
codeSetsto use in the null hypothesis distribution for rho; similar to replicates in a Monte Carlo study- ScSKappaThreshold
The maximum kappa value used to generate simulated
codeSetsin the null hypothesis distribution for rho- ScSKappaMin
The minimum kappa value used to generate simulated
codeSetsin the null hypothesis distribution for rho- ScSPrecisionMin
The minimum precision to be used for generation of simulated
codeSetsin the null hypothesis distribution for rho- ScSPrecisionMax
The maximum precision to be used for generation of simulated
codeSetsin the null hypothesis distribution for rho,- method
character vector choosing implementation "standard" (Default) or "c"
Value
rho for the given parameters
A list of the format:
- rho
The rho of the
contingencyTable- kappa
The Cohen's Kappa of the
contingencyTable
