Skip to content

Commit

Permalink
Changed error to warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ngreifer committed Mar 22, 2024
1 parent 5f72bff commit f83ae77
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions R/weightit2glm.R
Original file line number Diff line number Diff line change
Expand Up @@ -362,10 +362,12 @@ weightit2glm.multi <- function(covs, treat, s.weights, subset, estimand, focal,
}

if (is_not_null(A$use.mlogit)) {
.err("`use.mlogit` is no longer accepted; use `multi.method` instead. See `help(\"method_glm\")` for details")
.err("`use.mlogit` is no longer accepted and will be ignored; use `multi.method` instead. See `help(\"method_glm\")` for details")
A$use.mlogit <- NULL
}
if (is_not_null(A$use.mclogit)) {
.err("`use.mclogit` is no longer accepted; use `multi.method` instead. See `help(\"method_glm\")` for details")
.wrn("`use.mclogit` is no longer accepted and will be ignored; use `multi.method` instead. See `help(\"method_glm\")` for details")
A$use.mclogit <- NULL
}

if (missing == "saem") {
Expand Down

0 comments on commit f83ae77

Please sign in to comment.