# binequality: Methods for Analyzing Binned Income Data

Methods for model selection, model averaging, and calculating metrics, such as the Gini, Theil, Mean Log Deviation, etc, on binned income data where the topmost bin is right-censored. We provide both a non-parametric method, termed the bounded midpoint estimator (BME), which assigns cases to their bin midpoints; except for the censored bins, where cases are assigned to an income estimated by fitting a Pareto distribution. Because the usual Pareto estimate can be inaccurate or undefined, especially in small samples, we implement a bounded Pareto estimate that yields much better results. We also provide a parametric approach, which fits distributions from the generalized beta (GB) family. Because some GB distributions can have poor fit or undefined estimates, we fit 10 GB-family distributions and use multimodel inference to obtain definite estimates from the best-fitting distributions. We also provide binned income data from all United States of America school districts, counties, and states.

- Author
- Samuel V. Scarpino, Paul von Hippel, and Igor Holas
- Date of publication
- 2014-09-15 07:27:50
- Maintainer
- Samuel V. Scarpino <scarpino@utexas.edu>
- License
- GPL (>= 3.0)
- Version
- 0.6.1

## Man pages

- binequality-package
- Methods for Analyzing Binned Income Data
- binequality-package
- Methods for Analyzing Binned Income Data
- county_bins
- A data set containing binned income for US counties
- county_bins
- A data set containing binned income for US counties
- fitFunc
- A function to fit a parametric distribution to binned data.
- fitFunc
- A function to fit a parametric distribution to binned data.
- getMids
- A function to calculate the bin midpoints.
- getMids
- A function to calculate the bin midpoints.
- getQuantilesParams
- A function to extract the quantiles and parameters
- getQuantilesParams
- A function to extract the quantiles and parameters
- giniCoef
- Calculates the Gini coefficient from quantiles
- giniCoef
- Calculates the Gini coefficient from quantiles
- LRT
- A function to perform likelihood ratio tests
- LRT
- A function to perform likelihood ratio tests
- makeFitComb
- A function to transform a list into a dataframe
- makeFitComb
- A function to transform a list into a dataframe
- makeInt
- A function to create a survival object from bin counts.
- makeInt
- A function to create a survival object from bin counts.
- makeIntWeight
- A function to create a survival object from bin counts and...
- makeWeightsAIC
- A function to calculate AIC weights
- makeWeightsAIC
- A function to calculate AIC weights
- mAvg
- A simple function to perfom model averaging using...
- mAvg
- A simple function to perfom model averaging using...
- midStats
- A function to calculate statistics using bin midpoints
- midStats
- A function to calculate statistics using bin midpoints
- MLD
- A function to calculate the MLD
- MLD
- A function to calculate the MLD
- modelAvg
- A function to calculate model averages
- modelAvg
- A function to calculate model averages
- paramFilt
- A function to filter models based on estimated parameters
- paramFilt
- A function to filter models based on estimated parameters
- run_GB_family
- A function to fit a parametric distributions to binned data.
- run_GB_family
- A function to fit a parametric distributions to binned data.
- school_district_bins
- A data set containing the school district data.
- school_district_bins
- A data set containing the school district data.
- state_bins
- A data set containing the binned state data.
- state_bins
- A data set containing the binned state data.
- theilInd
- A function to calculate the Theil
- theilInd
- A function to calculate the Theil

## Files in this package

binequality |

binequality/inst |

binequality/inst/CITATION |

binequality/NAMESPACE |

binequality/data |

binequality/data/school_district_bins.rda |

binequality/data/county_bins.rda |

binequality/data/state_bins.rda |

binequality/data/datalist |

binequality/R |

binequality/R/makeIntWeight.R |

binequality/R/fitFunc.R |

binequality/R/MLD.R |

binequality/R/modelAvg.R |

binequality/R/makeWeightsAIC.R |

binequality/R/giniCoef.R |

binequality/R/mAvg.R |

binequality/R/makeInt.R |

binequality/R/midStats.R |

binequality/R/makeFitComb.R |

binequality/R/paramFilt.R |

binequality/R/getMids.R |

binequality/R/LRT.R |

binequality/R/theilInd.R |

binequality/R/getQuantilesParams.R |

binequality/R/run_GB_family.R |

binequality/MD5 |

binequality/DESCRIPTION |

binequality/man |

binequality/man/makeIntWeight.Rd |

binequality/man/LRT.Rd |

binequality/man/midStats.Rd |

binequality/man/modelAvg.Rd |

binequality/man/school_district_bins.Rd |

binequality/man/MLD.Rd |

binequality/man/makeInt.Rd |

binequality/man/fitFunc.Rd |

binequality/man/county_bins.Rd |

binequality/man/paramFilt.Rd |

binequality/man/giniCoef.Rd |

binequality/man/state_bins.Rd |

binequality/man/theilInd.Rd |

binequality/man/makeFitComb.Rd |

binequality/man/binequality-package.Rd |

binequality/man/getQuantilesParams.Rd |

binequality/man/mAvg.Rd |

binequality/man/run_GB_family.Rd |

binequality/man/makeWeightsAIC.Rd |

binequality/man/getMids.Rd |