denspr {siggenes}R Documentation

Density Estimation

Description

Estimates the density of a vector of observations by a Poisson regression fit to histogram counts.

Usage

  denspr(x, n.interval = NULL, df = 7)

Arguments

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

Value

A numeric vector of the same length as x containing the estimated density for each of the observations

References

Efron, B., and Tibshirani, R. (1996). Using specially designed exponential families for density estimation. Annals of Statistics, 24, 2431–2461.


[Package siggenes version 1.10.1 Index]