Skip to content

binsmooth

Generate PDFs and CDFs from Binned Data

v0.2.2 · Mar 11, 2020 · MIT + file LICENSE

Description

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.

Downloads

CRAN

284

Last 30 days

14227th

709

Last 90 days

3.1K

Last year

Trend: +50.3% (30d vs prior 30d)

r2u CRAN

11

Last 30 days

26

Last 90 days

155

Last year

Trend: -21.4% (30d vs prior 30d)

autoCRAN

15

Last 7 days

67

Last 30 days

1

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

2 NOTE
11 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang NOTE
r-devel-linux-x86_64-debian-gcc NOTE
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (2 non-OK)
NOTE r-devel-linux-x86_64-debian-clang

CRAN incoming feasibility

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.
NOTE r-devel-linux-x86_64-debian-gcc

CRAN incoming feasibility

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.

Check History

NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-devel-linux-x86_64-debian-clang

CRAN incoming feasibility

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"),
             
...[truncated]...
            family = "Drown",
                      role = "aut"),
               person(given = "Dave",
                      family = "Hunter",
                      role = "cre",
                      email = "dhunter@westmont.edu"))
as necessary.
NOTE r-devel-linux-x86_64-debian-gcc

CRAN incoming feasibility

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"),
             
...[truncated]...
            family = "Drown",
                      role = "aut"),
               person(given = "Dave",
                      family = "Hunter",
                      role = "cre",
                      email = "dhunter@westmont.edu"))
as necessary.

Dependency Network

Dependencies Reverse dependencies pracma ineq triangle binsmooth

Version History

5 tracked
new 0.2.2 Mar 10, 2026
updated 0.2.2 ← 0.2.1 diff Mar 10, 2020
updated 0.2.1 ← 0.2.0 diff Oct 26, 2019
updated 0.2.0 ← 0.1.0 diff May 31, 2019
new 0.1.0 Aug 11, 2016