Returns x and y coordinates of the density estimate of the probability density based on binned data.
bde(x, counts, nclass, breaks, bw,
type="kde", from, to, gridsize=512L,
lbound, conf.level)
A vector of sample data. 'NA' values will be automatically removed.
vector of frequencies (counts) of different bins. Missing values are not allowed.
Number of classes
vector of breaking points.
Bin (class) width.
A numerical value showing where the distribution is
bounded to the left. The distribution is not left bounded if
lbound
is missing.
parameters to define fine equally spaced grid points at which to estimate the density.
Distribution family or smoothing type used to fit the histogram.
Confidence level for the pointwise/simultaneous confidence bands.
a list containing the following components:
vector of sorted x
values at which the
density estimate y
was computed.
If parametric method is used, return the type of
distribution family in type
, and estimated parameters in
pars
.
conf.level
gives the confidence
level; lcb
and ucb
are the corresponding confidence
bands for the density function.
Missing values are not allowed. A specific family of distribution is fitted to the a set of non-negative data that have binned. Families of distributions supported include:
ewd
exponentiated Weibull distribution;
weibull
Weibull distribution;
dagum
Type I Dagum distribution.
Some histogram-based smoothing methods include:
smkde,smoothkde
Blower and Kelsall's smooth KDE.
histospline
Minnottee (1996,1998)'s histospline estimate.
bootkde
Two-stage bootstrap KDE.
npr/lpr/root-unroot
Estimate the density via local
polynomial regression using root-unroot.
fnmm/nmix/normmix/nm
Fitting finite normal mixture model
using EM algorithm.
Wang, B. (2014). JSS paper.
Blower G, Kelsall J (2002). "Nonlinear kernel density estimation for binned data: convergence in entropy." Bernoulli, 8(4), 423-449.
Minnottee MC (1996). "The bias-optimized frequency polygon." Comput. Statist., 11, 35-48.
Minnottee MC (1998). "Achieving higher-order convergence rates for density estimation with binned data." JASA, 93(442), 663-672.
Wang, B. and Wertelecki, W. (2012) Density Estimation for Data With Rounding Errors. Computational Statistics and Data Analysis, doi: 10.1016/j.csda.2012.02.016.