Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation to inform users about Rhat warning #419

Merged
merged 1 commit into from
Aug 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion R/draws.R
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
#' - `group`: name of the column in `data` which contains the group variable.
#' - `outcome`: name of the column in `data` which contains the outcome variable.
#' - `covariates`: vector of characters which contains the covariates to be included
#' in the model (including interactions which are specified as `"covariateName1*covariateName2"``).
#' in the model (including interactions which are specified as `"covariateName1*covariateName2"`).
#' If no covariates are provided the default model specification of `outcome ~ 1 + visit + group` will be used.
#' Please note that the `group*visit` interaction
#' is **not** included in the model by default.
Expand All @@ -142,6 +142,12 @@
#' Needed only for `method_condmean(type = "bootstrap")` and `method_approxbayes()`.
#' - `strategy`: name of the column in `data_ice` which contains the subject-specific imputation strategy.
#'
#' In our experience, Bayesian MI (`method = method_bayes()`) with a relatively low number of samples (e.g. `n_samples` below 100)
#' frequently triggers STAN warnings about R-hat such as "The largest R-hat is X.XX, indicating chains have not mixed".
#' In many instances, this warning might be spurious, i.e. standard diagnostics analysis of the MCMC samples
#' do not indicate any issues and results look reasonable. Increasing the number of samples to e.g. above 150 usually
#' gets rid of the warning.
#'
#' @inherit as_draws return
#'
#'@seealso [method_bayes()], [method_approxbayes()], [method_condmean()], [method_bmlmi()] for setting `method`.
Expand Down
10 changes: 9 additions & 1 deletion man/draws.Rd

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

Loading