Skip to content

Commit

Permalink
Fix K = 1 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
fseaton committed Sep 25, 2024
1 parent b909bc8 commit 13e32b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/sim_data_funs.R
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ jsdm_sim_data <- function(N, S, D = NULL, K = 0L, family, method = c("gllvm", "m
}
if (isTRUE(species_intercept)) {
if (K > 0) {
x <- x[, 2:ncol(x)]
x <- x[, 2:ncol(x), drop = FALSE]
} else {
x <- NULL
}
Expand Down

0 comments on commit 13e32b7

Please sign in to comment.