From f83ae77eccbed9110b1ed5209aeb8bb3d1846cd5 Mon Sep 17 00:00:00 2001 From: Noah Greifer Date: Fri, 22 Mar 2024 15:40:36 -0400 Subject: [PATCH] Changed error to warning --- R/weightit2glm.R | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/R/weightit2glm.R b/R/weightit2glm.R index b133bab2..3dc8444c 100644 --- a/R/weightit2glm.R +++ b/R/weightit2glm.R @@ -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") {