This function calculates rho for an observed kappa value with associated set parameters
(testSetLength and OcSBaserate). Called by rho. A p-value is returned and if
this value is less than 0.05, it is said that the handset does generalize to the entire set
rhoK(
x,
OcSBaserate,
testSetLength,
testSetBaserateInflation = 0,
OcSLength = 10000,
replicates = 800,
ScSKappaThreshold = 0.9,
ScSKappaMin = 0.4,
ScSPrecisionMin = 0.6,
ScSPrecisionMax = 1,
method = "standard"
)rho for the given parameters
rho for the given parameters
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 length of the testSet (ignored unless data is an observed kappa value)
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,
set to "c" to calculate using the C++ implmentation. Defaults to "standard"
rho