Skip to content

Commit d005c5c

Browse files
Fix compute_sufficient_pairwise
1 parent 235da5c commit d005c5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/data_utils.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ compute_sufficient_blume_capel = function(x, reference_category, ordinal_variabl
490490

491491
# Helper function for computing sufficient statistics for pairwise interactions
492492
compute_sufficient_pairwise <- function(x, group) {
493-
result <- vector("list", length(group))
493+
result <- vector("list", length(unique(group)))
494494

495495
for (g in unique(group)) {
496496
obs <- x[group == g, , drop = FALSE]

0 commit comments

Comments
 (0)