We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12bf37c commit 4090e3bCopy full SHA for 4090e3b
R/posterior_transformation.R
@@ -419,9 +419,11 @@ compute_contrast_bart_model <- function(
419
if (!is.matrix(rfx_basis_0) || !is.matrix(rfx_basis_1)) {
420
stop("'rfx_basis_0' and 'rfx_basis_1' must be matrices")
421
}
422
- if ((nrow(rfx_basis_0) != nrow(X)) || (nrow(rfx_basis_1) != nrow(X))) {
+ if (
423
+ (nrow(rfx_basis_0) != nrow(X_0)) || (nrow(rfx_basis_1) != nrow(X_1))
424
+ ) {
425
stop(
- "'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'"
427
)
428
429
if (
0 commit comments