Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ngreifer committed Aug 20, 2024
1 parent 6cdb3c8 commit 6dd448c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion R/weightit2cbps.R
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
#' method = "cbps"))
#' summary(W3)
#' cobalt::bal.tab(W3)
#'
#' \donttest{
#' #Longitudinal treatments
#' data("msmdata")
#' (W4 <- weightitMSM(list(A_1 ~ X1_0 + X2_0,
Expand All @@ -150,6 +150,7 @@
#' method = "cbps"))
#' summary(W4)
#' cobalt::bal.tab(W4)
#' }
NULL

weightit2cbps <- function(covs, treat, s.weights, estimand, focal, subset,
Expand Down
2 changes: 1 addition & 1 deletion R/weightit2gbm.R
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ weightit2gbm <- function(covs, treat, s.weights, estimand, focal, subset,
chk::chk_string(criterion)
}

available.criteria <- cobalt::available.stats(treat.type)
available.criteria <- cobalt::available.stats(switch(treat.type, "multi-category" = "multi", treat.type))

if (startsWith(criterion, "es.")) {
subbed.crit <- sub("es.", "smd.", criterion, fixed = TRUE)
Expand Down
3 changes: 2 additions & 1 deletion man/method_cbps.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6dd448c

Please sign in to comment.