Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Oct 25, 2023
1 parent 8379abb commit 81a95b0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions R/format.R
Original file line number Diff line number Diff line change
Expand Up @@ -943,10 +943,12 @@ format.parameters_sem <- function(x,

# check for complete separation coefficients or possible issues with
# too few data points
if (!is.null(spurious_coefficients) && any(spurious_coefficients > 140)) {
msg <- c(msg, "Note that some coefficients are very large, which may indicate issues with complete separation.") # nolint
} else if (any(spurious_coefficients > 20)) {
msg <- c(msg, "Note that some coefficients are very large, which may indicate issues with too few data points for some parameters. Consider using bias-corrected or penalized regression models.") # nolint
if (!is.null(spurious_coefficients)) {
if (any(spurious_coefficients > 140)) {
msg <- c(msg, "Note that some coefficients are very large, which may indicate issues with complete separation.") # nolint
} else if (any(spurious_coefficients > 20)) {
msg <- c(msg, "Note that some coefficients are very large, which may indicate issues with too few data points for some parameters. Consider using bias-corrected or penalized regression models.") # nolint
}
}

if (!is.null(msg) && isTRUE(getOption("parameters_warning_exponentiate", TRUE))) {
Expand Down

0 comments on commit 81a95b0

Please sign in to comment.