Skip to content

Commit 339a5ae

Browse files
authored
Issue #376: Add epidist_diagnostics to FAQ (#378)
* Add epidist_diagnostics to FAQ * Put text on new line
1 parent 4150efa commit 339a5ae

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

R/diagnostics.R

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#' `max_treedepth`
1515
#' * `per_at_max_treedepth`: the proportion of samples which attained the
1616
#' `max_treedepth`
17+
#'
1718
#' When the fitting algorithm is not `"sampling"` (see [brms::brm()] for other
1819
#' possible algorithms) then diagnostics are yet to be implemented.
1920
#' @param fit A fitted model of class `epidist_fit`

man/epidist_diagnostics.Rd

+3-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vignettes/faq.Rmd

+6
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ library(bayesplot)
7777
mcmc_trace(fit, pars = c("Intercept", "Intercept_sigma"))
7878
```
7979

80+
We also provide a function `epidist_diagnostics()` which can be used to obtain common diagnostics used to assess the quality of a fitted model.
81+
82+
```{r message = FALSE}
83+
epidist_diagnostics(fit)
84+
```
85+
8086
## I'd like to run a simulation study
8187

8288
We recommend use of the `purrr` package for running many `epidist` models, for example as a part of a simulation study.

0 commit comments

Comments
 (0)