degreesoffreedom: Computing a binning's degrees of freedom

numNumFittedDfR Documentation

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)

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

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.

Value

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

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(s)

Chris Salahub


AssocBin documentation built on April 3, 2025, 7:46 p.m.