Skip to content

Commit

Permalink
fix vignette
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Sep 30, 2023
1 parent b81dd92 commit 22f1e09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vignettes/example1.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit 22f1e09

Please sign in to comment.