denspr {siggenes} | R Documentation |
Estimates the density of a vector of observations by a Poisson regression fit to histogram counts.
denspr(x, n.interval = NULL, df = 7)
x |
a numeric vector containing the observations for which the density should be estimated |
n.interval |
an integer specifying the number of cells for the histogram.
If NULL , n.interval is set to the squared root of the number
of observations |
df |
integer specifying the degrees of freedom of the natural cubic spline used in the Poisson regression fit |
A numeric vector of the same length as x
containing the estimated density
for each of the observations
Efron, B., and Tibshirani, R. (1996). Using specially designed exponential families for density estimation. Annals of Statistics, 24, 2431–2461.