Skip to content

Commit d2d97e2

Browse files
authored
Remove superfluous dimension drop
1 parent 50c4864 commit d2d97e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/verify_optimize_controls_inputs.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ process_qs <- function(ratio, q_s, n_s, treated, k, group, st_vals, stratios) {
171171
if (is.null(ratio)) {
172172
ratio <- sapply(1:nrow(stratios), function(i) min(1, min(stratios[i, ])))
173173
}
174-
q_s <- round(ratio %*% t(n_s[group == treated, , drop = FALSE]))
174+
q_s <- round(ratio %*% t(n_s[group == treated, ]))
175175
if (any(q_s > n_s)) {
176176
stop("The ratio you specified is not feasible.
177177
Please supply `q_s` instead of `ratio` or lower the `ratio` input.",

0 commit comments

Comments
 (0)