From 22f1e09c8c656466858b9407c03d091dc1a9bd0a Mon Sep 17 00:00:00 2001 From: Daniel Date: Sat, 30 Sep 2023 09:17:44 +0200 Subject: [PATCH] fix vignette --- vignettes/example1.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vignettes/example1.Rmd b/vignettes/example1.Rmd index f2f7d87c3..632dcfdb6 100644 --- a/vignettes/example1.Rmd +++ b/vignettes/example1.Rmd @@ -265,7 +265,7 @@ ggplot(posteriors, aes(x = Petal.Length)) + # The median in red geom_vline(xintercept = median(posteriors$Petal.Length), color = "red", linewidth = 1) + # The MAP in purple - geom_vline(xintercept = map_estimate(posteriors$Petal.Length), color = "purple", linewidth = 1) + geom_vline(xintercept = as.numeric(map_estimate(posteriors$Petal.Length)), color = "purple", linewidth = 1) ``` Well, all these values give very similar results. Thus, **we will choose the median**, as this value has a direct meaning from a probabilistic perspective: **there is 50\% chance that the true effect is higher and 50\% chance that the effect is lower** (as it divides the distribution in two equal parts).