Skip to content

Commit

Permalink
Issue #376: Add epidist_diagnostics to FAQ (#378)
Browse files Browse the repository at this point in the history
* Add epidist_diagnostics to FAQ

* Put text on new line
  • Loading branch information
athowes authored Oct 14, 2024
1 parent 4150efa commit 339a5ae
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions R/diagnostics.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#' `max_treedepth`
#' * `per_at_max_treedepth`: the proportion of samples which attained the
#' `max_treedepth`
#'
#' When the fitting algorithm is not `"sampling"` (see [brms::brm()] for other
#' possible algorithms) then diagnostics are yet to be implemented.
#' @param fit A fitted model of class `epidist_fit`
Expand Down
4 changes: 3 additions & 1 deletion man/epidist_diagnostics.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions vignettes/faq.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ library(bayesplot)
mcmc_trace(fit, pars = c("Intercept", "Intercept_sigma"))
```

We also provide a function `epidist_diagnostics()` which can be used to obtain common diagnostics used to assess the quality of a fitted model.

```{r message = FALSE}
epidist_diagnostics(fit)
```

## I'd like to run a simulation study

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

0 comments on commit 339a5ae

Please sign in to comment.