Generate PDFs and CDFs from Binned Data
Overview
Provides several methods for generating density functions based on binned data. Methods include step function, recursive subdivision, and optimized spline. Data are assumed to be nonnegative, the top bin is assumed to have no upper bound, but the bin widths need be equal. All PDF smoothing methods maintain the areas specified by the binned data. (Equivalently, all CDF smoothing methods interpolate the points specified by the binned data.) In practice, an estimate for the mean of the distribution should be supplied as an optional argument. Doing so greatly improves the reliability of statistics computed from the smoothed density functions. Includes methods for estimating the Gini coefficient, the Theil index, percentiles, and random deviates from a smoothed distribution. Among the three methods, the optimized spline (splinebins) is recommended for most purposes. The percentile and random-draw methods should be regarded as experimental, and these methods only support splinebins.
Update:
- Fixed bug in splinebins warning when median falls in the first bin.
From NEWS in the release
Install
Health
NOTECRAN incoming feasibilityr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Maintainer: ‘Dave Hunter <dhunter@westmont.edu>’
No Authors@R field in DESCRIPTION.
Please add one, modifying
Authors@R: c(person(given = c("David", "J."),
family = "Hunter",
role = "aut"),
person(given = "McKalie",
family = "Drown",
role = "aut"),
person(given = "Dave",
family = "Hunter",
role = "cre",
email = "dhunter@westmont.edu"))
as necessary.- NOTE11 OK, 2 NOTE2026-09-08
- ERROR10 OK, 2 NOTE, 1 ERROR2026-09-07
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
- Help pages
- 11
- Examples that run
- 100%11 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- not tracked
- Return-value docs
- not tracked
- Help pages citing references
- 82%
Downloads
Dependencies
Code & Tests
Datasets
People & History
Maintainer since 0.1.0 (2016)
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- 0.2.2Latest
- 0.2.12019-10-27 · diff ↗
- 0.2.02019-06-01 · diff ↗
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
- RR 3.4.0 released · 2017-04-21
- 0.1.02016-08-12
- RR 3.3.0 released · 2016-05-03
Package metadata
- First published
- 2016-08-12
- Total releases
- 4 / 10 yrs
- License
- MIT + file LICENSE OSI
- Bundled data
- 171 KB / 2 files
- Download size
- 171 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("binsmooth")Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.