Skip to content

Commit c7b568b

Browse files
committed
inherit docs from insight
1 parent 1afbe92 commit c7b568b

2 files changed

Lines changed: 52 additions & 45 deletions

File tree

R/check_convergence.R

Lines changed: 9 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -12,37 +12,18 @@
1212
#' @return `TRUE` if convergence is fine and `FALSE` if convergence
1313
#' is suspicious. Additionally, the convergence value is returned as attribute.
1414
#'
15-
#' @section Convergence and log-likelihood:
16-
#' Convergence problems typically arise when the model hasn't converged
17-
#' to a solution where the log-likelihood has a true maximum. This may result
18-
#' in unreliable and overly complex (or non-estimable) estimates and standard
19-
#' errors.
15+
#' @inheritSection insight::is_converged Convergence and log-likelihood
2016
#'
21-
#' @section Inspect model convergence:
22-
#' **lme4** performs a convergence-check (see `?lme4::convergence`),
23-
#' however, as as discussed [here](https://github.com/lme4/lme4/issues/120)
24-
#' and suggested by one of the lme4-authors in
25-
#' [this comment](https://github.com/lme4/lme4/issues/120#issuecomment-39920269),
26-
#' this check can be too strict. `check_convergence()` thus provides an
27-
#' alternative convergence test for `merMod`-objects.
17+
#' @inheritSection insight::is_converged Inspect model convergence
2818
#'
29-
#' @section Resolving convergence issues:
30-
#' Convergence issues are not easy to diagnose. The help page on
31-
#' `?lme4::convergence` provides most of the current advice about
32-
#' how to resolve convergence issues. Another clue might be large parameter
33-
#' values, e.g. estimates (on the scale of the linear predictor) larger than
34-
#' 10 in (non-identity link) generalized linear model *might* indicate
35-
#' [complete separation](https://stats.oarc.ucla.edu/other/mult-pkg/faq/general/faqwhat-is-complete-or-quasi-complete-separation-in-logisticprobit-regression-and-how-do-we-deal-with-them/).
36-
#' Complete separation can be addressed by regularization, e.g. penalized
37-
#' regression or Bayesian regression with appropriate priors on the fixed effects.
19+
#' @inheritSection insight::is_converged Resolving convergence issues
3820
#'
39-
#' @section Convergence versus Singularity:
40-
#' Note the different meaning between singularity and convergence: singularity
41-
#' indicates an issue with the "true" best estimate, i.e. whether the maximum
42-
#' likelihood estimation for the variance-covariance matrix of the random effects
43-
#' is positive definite or only semi-definite. Convergence is a question of
44-
#' whether we can assume that the numerical optimization has worked correctly
45-
#' or not.
21+
#' @inheritSection insight::is_converged Convergence versus Singularity
22+
#'
23+
#' @references
24+
#' Bates, D., Mächler, M., Bolker, B., and Walker, S. (2015). Fitting Linear
25+
#' Mixed-Effects Models Using lme4. Journal of Statistical Software, 67(1),
26+
#' 1-48. \doi{10.18637/jss.v067.i01}
4627
#'
4728
#' @family functions to check model assumptions and and assess model quality
4829
#'

man/check_convergence.Rd

Lines changed: 43 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)