Skip to content

Commit

Permalink
Issue #391: Add priorsense to FAQ (#392)
Browse files Browse the repository at this point in the history
  • Loading branch information
athowes authored Oct 16, 2024
1 parent 0eacf11 commit 8b53356
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 6 deletions.
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ Suggests:
tidybayes,
modelr,
patchwork,
cmdstanr
cmdstanr,
priorsense
Additional_repositories:
https://stan-dev.r-universe.dev
Config/Needs/website:
Expand Down
10 changes: 10 additions & 0 deletions vignettes/faq.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,16 @@ quantile(pred$mean, c(0.01, 0.1, 0.25, 0.5, 0.75, 0.9, 0.99))
quantile(pred$sd, c(0.01, 0.1, 0.25, 0.5, 0.75, 0.9, 0.99))
```

# How can I assess how sensitive the fitted posterior distribution is to the prior distribution used?

We recommend use of the [`priorsense`](https://github.com/n-kall/priorsense) R package [@kallioinen2024detecting] to check how sensitive the posterior distribution is to perturbations of the prior distribution and likelihood using power-scaling analysis:

```{r}
library(priorsense)
powerscale_plot_dens(fit, variable = c("Intercept", "Intercept_sigma")) +
theme_minimal()
```

# What do the parameters in my model output correspond to?

The `epidist` package uses `brms` to fit models.
Expand Down
21 changes: 16 additions & 5 deletions vignettes/references.bib
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,20 @@ @article{fang2016transmission
}

@misc{who_ebola_2014_2016,
author = {{World Health Organization}},
title = {Ebola outbreak 2014-2016 - West Africa},
year = 2016,
url = {https://www.who.int/emergencies/situations/ebola-outbreak-2014-2016-West-Africa},
note = {Accessed: 2024-05-28}
author={{World Health Organization}},
title={Ebola outbreak 2014-2016 - West Africa},
year=2016,
url={https://www.who.int/emergencies/situations/ebola-outbreak-2014-2016-West-Africa},
note={Accessed: 2024-05-28}
}

@article{kallioinen2024detecting,
title={Detecting and diagnosing prior and likelihood sensitivity with power-scaling},
author={Kallioinen, Noa and Paananen, Topi and B{\"u}rkner, Paul-Christian and Vehtari, Aki},
journal={Statistics and Computing},
volume={34},
number={1},
pages={57},
year={2024},
publisher={Springer}
}

0 comments on commit 8b53356

Please sign in to comment.