|
12 | 12 | #' @return `TRUE` if convergence is fine and `FALSE` if convergence |
13 | 13 | #' is suspicious. Additionally, the convergence value is returned as attribute. |
14 | 14 | #' |
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 |
20 | 16 | #' |
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 |
28 | 18 | #' |
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 |
38 | 20 | #' |
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} |
46 | 27 | #' |
47 | 28 | #' @family functions to check model assumptions and and assess model quality |
48 | 29 | #' |
|
0 commit comments