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 5cf421b commit f1ab699
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/matching.R
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ estimate_weights <- function(data,
if (!is.null(boot_strata)) {
ch4 <- boot_strata %in% names(data)
if (!all(ch4)) {
stop(paste("follow items in boot_strata does not exist in names(data):", paste(boot_strata[!ch4], collapse = ",")))
stop("Some variables in boot_strata are not in data:", toString(boot_strata[!ch4]))
}
}

Expand Down

0 comments on commit f1ab699

Please sign in to comment.