This function calculates rho and kappa for a given testSet, and returns a list containing both values. Called by rho.

rhoSet(
x,
OcSBaserate = NULL,
testSetBaserateInflation = 0,
OcSLength = 10000,
replicates = 800,
ScSKappaThreshold = 0.9,
ScSKappaMin = 0.4,
ScSPrecisionMin = 0.6,
ScSPrecisionMax = 1
)

Arguments

x 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

Value

rho for the given parameters

A list of the format:

rho

The rho of the codeSet

kappa

The Cohen's Kappa of the codeSet

rho