Functions which compute the degrees of freedom of a binning for a chi-squared approximation or parameters for a gamma approximation based on empirical results.
numNumFittedDf(nbins)numNumSimpleDf(nbins)
numNumGammaShape(nbins)
numNumGammaScale(nbins)
facNumSimpleDf(nbins, ncat)
facNumFittedDf(nbins, ncat)
facNumGammaShape(nbins, ncat)
facNumGammaScale(nbins, ncat)
A numeric estimate of the paramter. In the case of degrees of freedom, this is generally not an integer.
the number of bins resulting from recursive random binning
if one variable is categorical, the number of values the variable can take
numNumFittedDf()
: Dual continuous fitted df
numNumSimpleDf()
: Dual continuous simple df
numNumGammaShape()
: Dual continuous gamma shape
numNumGammaScale()
: Dual continuous gamma scale
facNumSimpleDf()
: Mixed type simple df
facNumFittedDf()
: Mixed type fitted df
facNumGammaShape()
: Mixed type gamma shape
facNumGammaScale()
: Mixed type gamma scale
Chris Salahub
These exported functions are used to compute parameters needed to approximate the distribution of the chi-squared statistic computed over bins. A full discussion can be found in the accompanying paper.