Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Mar 17, 2024
1 parent fe1ee76 commit a473296
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/check_distribution.R
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ check_distribution.numeric <- function(model) {
map_est <- .safe(mean(x) - as.numeric(bayestestR::map_estimate(x, bw = "nrd0")))

if (is.null(map_est)) {
map_est <- datawizard::distribution_mode(x)
map_est <- mean(x) - datawizard::distribution_mode(x)
msg <- "Could not accurately estimate the mode."
if (!is.null(type)) {
msg <- paste(msg, "Predicted distribution of the", type, "may be less accurate.")

Check warning on line 203 in R/check_distribution.R

View check run for this annotation

Codecov / codecov/patch

R/check_distribution.R#L200-L203

Added lines #L200 - L203 were not covered by tests
Expand Down

0 comments on commit a473296

Please sign in to comment.