Skip to content

Commit

Permalink
lintr
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Sep 29, 2023
1 parent 05336ec commit 198578d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/check_model_diagnostics.R
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,10 @@

if (inherits(model, "lm", which = TRUE) == 1) {
cook_levels <- round(stats::qf(0.5, s$fstatistic[2], s$fstatistic[3]), 2)
} else if (!is.null(threshold)) {
cook_levels <- threshold
} else {
} else if (is.null(threshold)) {
cook_levels <- c(0.5, 1)
} else {
cook_levels <- threshold
}

n_params <- tryCatch(model$rank, error = function(e) insight::n_parameters(model))
Expand Down

0 comments on commit 198578d

Please sign in to comment.