Skip to content

Commit f79679d

Browse files
authored
Remove redundant condition (#1413)
1 parent 5f45076 commit f79679d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

r-package/grf/R/rank_average_treatment.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ estimate_rate <- function(data, indices, q, wtd.mean) {
532532
boot_grf <- function(data, statistic, R, clusters, half.sample = TRUE, ...) {
533533
samples.by.cluster <- split(seq_along(clusters), clusters)
534534
n <- length(samples.by.cluster) # number of clusters
535-
if (n <= 1 || (half.sample && floor(n / 2) < 1)) {
535+
if (n <= 1) {
536536
stop("Cannot bootstrap sample with only one effective unit.")
537537
}
538538
if (half.sample) {

0 commit comments

Comments
 (0)