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

212

Last 30 days

15573rd

416

Last 90 days

416

Last year

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

CRAN Check Status

2 NOTE
12 OK
Show all 14 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-macos-arm64 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 (14 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.
OK r-devel-linux-x86_64-fedora-clang

*


            
OK r-devel-linux-x86_64-fedora-gcc

*


            
OK r-devel-macos-arm64

*


            
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

*


            

Check History

NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 9, 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"),
               person(given = "McKalie",
                      family = "Drown",
                      role = "aut"),
               person(given = "Dave",
                      family = "Hunter",
                      role = "cre",
                      email = 
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 = 

Dependency Network

Dependencies Reverse dependencies pracma ineq triangle binsmooth

Version History

new 0.2.2 Mar 9, 2026