Skip to content

Commit

Permalink
Merge branch 'feature/fix_regression_discrete_model_matrix' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
dmphillippo committed Sep 20, 2024
2 parents 023a6e0 + cacfd5f commit 9ecb244
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: multinma
Title: Bayesian Network Meta-Analysis of Individual and Aggregate Data
Version: 0.7.2.9001
Version: 0.7.2.9002
Authors@R:
person(given = c("David", "M."),
family = "Phillippo",
Expand Down
2 changes: 1 addition & 1 deletion R/nma.R
Original file line number Diff line number Diff line change
Expand Up @@ -2951,7 +2951,7 @@ make_nma_model_matrix <- function(nma_formula,

# Remove reference level columns if present
if (!is.null(x_ref)) {
col_x_ref <- grepl(paste0("\\Q", xvar, x_ref, "\\E"), colnames(X_all), perl = TRUE)
col_x_ref <- grepl(paste0("(`?)\\Q", xvar, "\\E(`?)\\Q", x_ref, "\\E"), colnames(X_all), perl = TRUE)
X_all <- X_all[, !col_x_ref, drop = FALSE]
}
}
Expand Down

0 comments on commit 9ecb244

Please sign in to comment.