Skip to content

Commit

Permalink
add warning
Browse files Browse the repository at this point in the history
  • Loading branch information
pepijnvink committed Dec 14, 2023
1 parent 60d7bf2 commit 231e632
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions R/plot_pred.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ plot_pred <-
rotate = FALSE) {
verify_data(data, pred = TRUE, imp = TRUE)
if (mice::is.mids(data)) {
if (!is.null(method)) {
cli::cli_warn(c(
"!" = "`Method` is ignored when `data` is of class `mids`.",
"i" = "The `method` vector from the `mids` object will be used."
))
}
method <- data$method
data <- data$predictorMatrix
}
Expand Down

0 comments on commit 231e632

Please sign in to comment.