Skip to content

Commit

Permalink
Improve warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
ndunnewind committed Dec 19, 2024
1 parent db06eaa commit 5da859a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion R/nma.R
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,10 @@ nma <- function(network,

if (".mu" %in% all.vars(regression)) {
if (".mu" %in% colnames(idat_agd_arm)) {
warn("Overwriting '.mu'. Special name. Use different name.")
warn(c(
"Detected `.mu` in the `regression` formula and in the data.",
i = "`.mu` is a special variable refering to the modelled baseline risk."
))
}

ref_trt <- levels(idat_agd_arm$.trt)[1L]
Expand Down

0 comments on commit 5da859a

Please sign in to comment.