Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Jun 12, 2024
1 parent 64b89df commit 2c07288
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/compute_variances.R
Original file line number Diff line number Diff line change
Expand Up @@ -556,8 +556,8 @@
# --------------------------

# we need this to adjust for "cbind()" outcomes
resp_value <- get_data(x, source = "frame")[, find_response(x)]
if (!is.null(ncol(resp_value)) && ncol(resp_value) > 1) {
resp_value <- .safe(get_data(x, source = "frame")[, find_response(x)])
if (!is.null(resp_value) && !is.null(ncol(resp_value)) && ncol(resp_value) > 1) {
y_factor <- mean(rowSums(resp_value, na.rm = TRUE))
} else {
y_factor <- 1
Expand Down

0 comments on commit 2c07288

Please sign in to comment.