Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Jun 30, 2023
1 parent 5606cb7 commit 4dc0771
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions vignettes/bayes_factors.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -1111,11 +1111,20 @@ fit_bayes <- stan_glm(Sepal.Length ~ Species,
```


```{r}
```{r eval=FALSE}
(pairs_bayes <- pairs(emmeans(fit_bayes, ~Species)))
ggplot(stack(insight::get_parameters(pairs_bayes)), aes(x = values, fill = ind)) +
geom_density(size = 1) +
geom_density(linewidth = 1) +
facet_grid(ind ~ .) +
labs(x = "prior difference values") +
theme(legend.position = "none")
```
```{r echo=FALSE, warning=FALSE, message=FALSE}
(pairs_bayes <- pairs(emmeans(fit_bayes, ~Species, data = iris)))
ggplot(stack(insight::get_parameters(pairs_bayes)), aes(x = values, fill = ind)) +
geom_density(linewidth = 1) +
facet_grid(ind ~ .) +
labs(x = "prior difference values") +
theme(legend.position = "none")
Expand Down

0 comments on commit 4dc0771

Please sign in to comment.