Package: degross 0.9.0

degross: Density Estimation from GROuped Summary Statistics

Estimation of a density from grouped (tabulated) summary statistics evaluated in each of the big bins (or classes) partitioning the support of the variable. These statistics include class frequencies and central moments of order one up to four. The log-density is modelled using a linear combination of penalised B-splines. The multinomial log-likelihood involving the frequencies adds up to a roughness penalty based on the differences in the coefficients of neighbouring B-splines and the log of a root-n approximation of the sampling density of the observed vector of central moments in each class. The so-obtained penalized log-likelihood is maximized using the EM algorithm to get an estimate of the spline parameters and, consequently, of the variable density and related quantities such as quantiles, see Lambert, P. (2021) <arxiv:2107.03883> for details.

Authors:Philippe Lambert [aut, cre]

degross_0.9.0.tar.gz
degross_0.9.0.zip(r-4.5)degross_0.9.0.zip(r-4.4)degross_0.9.0.zip(r-4.3)
degross_0.9.0.tgz(r-4.4-any)degross_0.9.0.tgz(r-4.3-any)
degross_0.9.0.tar.gz(r-4.5-noble)degross_0.9.0.tar.gz(r-4.4-noble)
degross_0.9.0.tgz(r-4.4-emscripten)degross_0.9.0.tgz(r-4.3-emscripten)
degross.pdf |degross.html
degross/json (API)

# Install 'degross' in R:
install.packages('degross', repos = c('https://plambertuliege.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/plambertuliege/degross/issues

On CRAN:

9 exports 2 stars 0.84 score 1 dependencies 3 scripts 263 downloads

Last updated 1 years agofrom:4fb733597a. Checks:OK: 1 NOTE: 6. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 17 2024
R-4.5-winNOTESep 17 2024
R-4.5-linuxNOTESep 17 2024
R-4.4-winNOTESep 17 2024
R-4.4-macNOTESep 17 2024
R-4.3-winNOTESep 17 2024
R-4.3-macNOTESep 17 2024

Exports:ddegrossdegrossdegross_lpostdegross_lpostBasicdegrossDatapdegrossqdegrossSigma_funsimDegrossData

Dependencies:cubicBsplines

Readme and manuals

Help Manual

Help pageTopics
Density function based on an object resulting from the estimation procedure in degross.ddegross
Density estimation from tabulated data with given frequencies and group central moments.degross
Log-posterior (with gradient and Fisher information) for given spline parameters, small bin frequencies, tabulated sample moments and roughness penalty parameter. This function is maximized during the M-step of the EM algorithm to estimate the B-spline parameters entering the density specification.degross_lpost
Log-posterior for given spline parameters, big bin (and optional: small bin) frequencies, tabulated sample moments and roughness penalty parameter. Compared to degross_lpost, no Fisher information matrix is computed and the gradient evaluation is optional, with a resulting computational gain.degross_lpostBasic
Object resulting from the estimation of a density from grouped (tabulated) summary statisticsdegross.object
Creates a degrossData.object from the observed tabulated frequencies and central moments.degrossData
Object generated from grouped summary statistics, including tabulated frequencies and central moments of order 1 up to 4, to estimate the underlying density using 'degross'.degrossData.object
Cumulative distribution function (cdf) based on an object resulting from the estimation procedure in degross.pdegross
Plot the density estimate obtained from grouped summary statistics using degross and superpose it to the observed histogram.plot.degross
Print a 'degross' object.print.degross
Print a 'degrossData' object.print.degrossData
Quantile function based on an object resulting from the estimation procedure in degross.qdegross
Variance-covariance of sample central moments (root-n approximation) given the vector mu with the theoretical moments of order 1 to 8. CAREFUL: the result must be divided by n (= sample size)!Sigma_fun
Simulation of grouped data and their sample moments to illustrate the degross density estimation proceduresimDegrossData