Learn R Programming

AssocBin (version 1.1-0)

numNumFittedDf: Computing a binning's degrees of freedom

Description

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.

Usage

numNumFittedDf(nbins)

numNumSimpleDf(nbins)

numNumGammaShape(nbins)

numNumGammaScale(nbins)

facNumSimpleDf(nbins, ncat)

facNumFittedDf(nbins, ncat)

facNumGammaShape(nbins, ncat)

facNumGammaScale(nbins, ncat)

Value

A numeric estimate of the paramter. In the case of degrees of freedom, this is generally not an integer.

Arguments

nbins

the number of bins resulting from recursive random binning

ncat

if one variable is categorical, the number of values the variable can take

Functions

  • 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

Author

Chris Salahub

Details

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.