R/placebo-simulations.R
lindsey_density_estimate.Rd
Computes a density estimator by smoothing a histogram using Poisson regression. Implementation of "Lindsey's method", as descrbied in Chapter 10 of "Computer age statistical inference: algorithms, evidence, and data science' by Bradley Efron and Trevor Hastie (2016).
lindsey_density_estimate(x, K, deg)
x |
|
---|---|
K |
|
deg |
|
a list with 2 fields, centers and density, which are K-dimensional vectors containing the bin centers and estimated density within each bin respectively.