Skip to content

Commit 03a6932

Browse files
authored
Merge pull request #312 from stan-dev/avehtari-patch-1
Update documentation for E_loo() function
2 parents d6fe380 + 60a484f commit 03a6932

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

R/E_loo.R

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
#' Compute weighted expectations
22
#'
33
#' The `E_loo()` function computes weighted expectations (means, variances,
4-
#' quantiles) using the importance weights obtained from the
5-
#' [PSIS][psis()] smoothing procedure. The expectations estimated by the
6-
#' `E_loo()` function assume that the PSIS approximation is working well.
4+
#' quantiles) using the importance weights obtained from the [PSIS][psis()]
5+
#' smoothing procedure. The expectations estimated by the `E_loo()` function
6+
#' assume that the PSIS approximation is working well.
77
#' **A small [Pareto k][pareto-k-diagnostic] estimate is necessary,
8-
#' but not sufficient, for `E_loo()` to give reliable estimates.** Additional
9-
#' diagnostic checks for gauging the reliability of the estimates are in
10-
#' development and will be added in a future release.
8+
#' but not sufficient, for `E_loo()` to give reliable estimates**. If the
9+
#' `log_ratios` argument is provided, `E_loo()` also computes a function
10+
#' specific Pareto k diagnostic, which must also be small for a reliable
11+
#' estimate. See more details below.
1112
#'
1213
#' @export
1314
#' @param x A numeric vector or matrix.

man/E_loo.Rd

Lines changed: 7 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)