bde {bda} | R Documentation |
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)
x |
A vector of sample data. 'NA' values will be automatically removed. |
counts |
vector of frequencies (counts) of different bins. Missing values are not allowed. |
nclass |
Number of classes |
breaks |
vector of breaking points. |
bw |
Bin (class) width. |
lbound |
A numerical value showing where the distribution is
bounded to the left. The distribution is not left bounded if
|
from,to,gridsize |
parameters to define fine equally spaced grid points at which to estimate the density. |
type |
Distribution family or smoothing type used to fit the histogram. |
conf.level |
Confidence level for the pointwise/simultaneous confidence bands. |
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.
a list containing the following components:
x,y |
vector of sorted |
type, npar, pars |
If parametric method is used, return the type of
distribution family in |
ucb, lcb, conf.level |
|
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.
data(hhi)