minmaxAlpha.pFNCH: integer-endpoint of range for which BiasedUrn::pFNCHHypergeo() works without error
Description
This function calculates an integer-endpoint of range for which BiasedUrn::pFNCHHypergeo() works without error.
Usage
minmaxAlpha.pFNCH(x, marg)
Value
minimum and maximum of Alpha
Arguments
x
integer co-occurrence count that should properly fall within the closed interval [max(0,mA+mB-N), min(mA,mB)]
marg
a 3-entry integer vector (mA,mB,N) consisting of the first row and column totals and the table total for a 2x2 contingency table
Author
Eric Slud
Details
Without this function, BiasedUrn::pFNCHHypergeo() returns inconsistency message for extreme examples like: AlphInts(20,c(204,269,2016), lev=0.9, scal=10).
This problem is solved within our package by restricting the range of allowed alpha to the computed (alphmin, alphmax) range.
References
Fog, A. (2015), BiasedUrn: Biased Urn Model Distributions. R package version 1.07.
Harkness, W. (1965), “Properties of the extended hypergeometric distribution“, Annals of Mathematical Statistics, 36, 938-945.