Skip to content

Commit

Permalink
tweak thresholds
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Oct 26, 2023
1 parent 827cd27 commit 9e0ed01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/format.R
Original file line number Diff line number Diff line change
Expand Up @@ -952,9 +952,9 @@ format.parameters_sem <- function(x,
# check for complete separation coefficients or possible issues with
# too few data points
if (!is.null(spurious_coefficients) && logit_model) {
if (any(spurious_coefficients > 140)) {
if (any(spurious_coefficients > 100)) {
msg <- c(msg, "Some coefficients are very large, which may indicate issues with complete separation.") # nolint
} else if (any(spurious_coefficients > 30)) {
} else if (any(spurious_coefficients > 25)) {
msg <- c(msg, "Some coefficients seem to be rather large, which may indicate issues with (quasi) complete separation. Consider using bias-corrected or penalized regression models.") # nolint
}
}
Expand Down

0 comments on commit 9e0ed01

Please sign in to comment.