Skip to content

Commit

Permalink
Update R/matching.R
Browse files Browse the repository at this point in the history
Co-authored-by: Isaac Gravestock <83659704+gravesti@users.noreply.github.com>
  • Loading branch information
hoppanda and gravesti committed Aug 11, 2024
1 parent 5117a52 commit 5cf421b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R/matching.R
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,7 @@ estimate_weights <- function(data,
set.seed(set_seed_boot)

if (!is.null(boot_strata)) {
use_strata <- subset(data, subset = (!ind), select = boot_strata)
use_strata <- apply(use_strata, 1, paste, collapse = "--") |> factor()
use_strata <- interaction(data[!ind, boot_strata])
} else {
use_strata <- rep(1, nrow(EM))
}
Expand Down

0 comments on commit 5cf421b

Please sign in to comment.