Skip to content

Commit 4090e3b

Browse files
committed
Deploying to r-dev from @ b63faed 🚀
1 parent 12bf37c commit 4090e3b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

R/posterior_transformation.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,9 +419,11 @@ compute_contrast_bart_model <- function(
419419
if (!is.matrix(rfx_basis_0) || !is.matrix(rfx_basis_1)) {
420420
stop("'rfx_basis_0' and 'rfx_basis_1' must be matrices")
421421
}
422-
if ((nrow(rfx_basis_0) != nrow(X)) || (nrow(rfx_basis_1) != nrow(X))) {
422+
if (
423+
(nrow(rfx_basis_0) != nrow(X_0)) || (nrow(rfx_basis_1) != nrow(X_1))
424+
) {
423425
stop(
424-
"'rfx_basis_0' and 'rfx_basis_1' must have the same number of rows as 'X'"
426+
"'rfx_basis_0' and 'rfx_basis_1' must have the same number of rows as 'X_0' and 'X_1'"
425427
)
426428
}
427429
if (

0 commit comments

Comments
 (0)