Skip to content

Commit

Permalink
add proper reference to 'Weighted quantile estimators'
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyAkinshin committed Apr 1, 2024
1 parent c8be1c2 commit 02bcd24
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/wquant.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
##'
##' Estimate weighted quantiles.
##'
##' \code{wquant} estimates quantiles of weighted data using the estimator of Harrell & Davis (1982), with improvements recommended by Andrey Akinshin.
##' \code{wquant} estimates quantiles of weighted data using the estimator of Harrell & Davis (1982), with improvements recommended by Andrey Akinshin (2023).
##'
##' @param x numeric; a vector of data.
##' @param weights numeric; vector of weights.
Expand All @@ -23,6 +23,8 @@
##' @references
##' \Harrell1982
##'
##' \Akinshin2023
##'
## The discussion in Andrey Akinshin's blog post
## https://aakinshin.net/posts/weighted-quantiles/
## was instrumental in developing these codes.
Expand Down
2 changes: 2 additions & 0 deletions man/macros/citations.Rd
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
% unlike in latex, new lines within \newcommand end the command (even using %)

\newcommand{\Akinshin2023}{A. Akinshin. Weighted quantile estimators. arXiv:2304.07265 [stat.ME], 2023.}

\newcommand{\Anderson2001}{J.L. Anderson. An ensemble adjustment Kalman filter for data assimilation. \emph{Monthly Weather Review} \bold{129}, 2884--2903, 2001.}

\newcommand{\Andrieu2009}{C. Andrieu and G.O. Roberts. The pseudo-marginal approach for computation. \emph{Annals of Statistics} \bold{37}, 697--725, 2009.}
Expand Down
2 changes: 2 additions & 0 deletions man/wquant.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 02bcd24

Please sign in to comment.