In the article “Efficient Estimation of Smooth Distributions From Coarsely Grouped Data” by Rizzi et al. (1), there was an error in the R code. On page 146, in the first line of R code, la2 should be replaced with lambda so that the computation of weights read “w < −c(1/mu, rep(lambda, nx − deg)).” The code has been updated in the most recent version of this article.
The authors regret this error.
REFERENCE
- 1. Rizzi S, Gampe J, Eilers PH. Efficient estimation of smooth distributions from coarsely grouped data. Am J Epidemiol. 2015;182(2):138–147. [DOI] [PMC free article] [PubMed] [Google Scholar]