From 1f95ac02a1f1c6e126410e6c6dc78a2a0f68ed86 Mon Sep 17 00:00:00 2001 From: Michael Chirico Date: Tue, 16 Jul 2024 16:13:58 -0700 Subject: [PATCH 1/3] Use ASCII hypen --- R/metrics-quantile.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/metrics-quantile.R b/R/metrics-quantile.R index 1a1121e1..ed278556 100644 --- a/R/metrics-quantile.R +++ b/R/metrics-quantile.R @@ -618,7 +618,7 @@ ae_median_quantile <- function(observed, predicted, quantile_level) { #' The quantile score, also called pinball loss, for a single quantile #' level \eqn{\tau} is defined as #' \deqn{ -#' \text{QS}_\tau(F, y) = 2 \cdot \{ \mathbf{1}(y \leq q_\tau) - \tau\} \cdot (q_\tau − y) = +#' \text{QS}_\tau(F, y) = 2 \cdot \{ \mathbf{1}(y \leq q_\tau) - \tau\} \cdot (q_\tau - y) = #' \begin{cases} #' 2 \cdot (1 - \tau) * q_\tau - y, & \text{if } y \leq q_\tau\\ #' 2 \cdot \tau * |q_\tau - y|, & \text{if } y > q_\tau, From ea083b5d2447923d3981afe4770dd5857d186299 Mon Sep 17 00:00:00 2001 From: Michael Chirico Date: Tue, 16 Jul 2024 16:16:07 -0700 Subject: [PATCH 2/3] In vignette --- vignettes/scoring-rules.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vignettes/scoring-rules.Rmd b/vignettes/scoring-rules.Rmd index 7a4b978e..93ec55cd 100644 --- a/vignettes/scoring-rules.Rmd +++ b/vignettes/scoring-rules.Rmd @@ -390,7 +390,7 @@ See section [A note of caution] or @gneitingMakingEvaluatingPoint2011 for a disc The quantile score, also called pinball loss, for a single quantile level $\tau$ is defined as \begin{equation} - \text{QS}_\tau(F, y) = 2 \cdot \{ \mathbf{1}(y \leq q_\tau) - \tau\} \cdot (q_\tau − y) = + \text{QS}_\tau(F, y) = 2 \cdot \{ \mathbf{1}(y \leq q_\tau) - \tau\} \cdot (q_\tau - y) = \begin{cases} 2 \cdot (1 - \tau) * q_\tau - y, & \text{if } y \leq q_\tau\\ 2 \cdot \tau * |q_\tau - y|, & \text{if } y > q_\tau, From 4fee2402a91ac0ec898c7838b426308c0e546821 Mon Sep 17 00:00:00 2001 From: Michael Chirico Date: Tue, 16 Jul 2024 16:16:41 -0700 Subject: [PATCH 3/3] Corresponding in Rd --- man/quantile_score.Rd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man/quantile_score.Rd b/man/quantile_score.Rd index 814d2b72..50a26aaf 100644 --- a/man/quantile_score.Rd +++ b/man/quantile_score.Rd @@ -43,7 +43,7 @@ central prediction intervals. The quantile score, also called pinball loss, for a single quantile level \eqn{\tau} is defined as \deqn{ - \text{QS}_\tau(F, y) = 2 \cdot \{ \mathbf{1}(y \leq q_\tau) - \tau\} \cdot (q_\tau − y) = + \text{QS}_\tau(F, y) = 2 \cdot \{ \mathbf{1}(y \leq q_\tau) - \tau\} \cdot (q_\tau - y) = \begin{cases} 2 \cdot (1 - \tau) * q_\tau - y, & \text{if } y \leq q_\tau\\ 2 \cdot \tau * |q_\tau - y|, & \text{if } y > q_\tau,